Refactor folder structure of the project

This commit is contained in:
2023-07-01 02:33:26 +02:00
parent 52cb85b41b
commit 79e7912ab3
23 changed files with 13 additions and 108 deletions

View File

@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20)
project(bayesnet)
project(BayesNet)
find_package(Torch REQUIRED)
if (POLICY CMP0135)
@@ -10,8 +10,5 @@ endif ()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
# add_library(BayesNet Node.cc Network.cc)
add_executable(BayesNet main.cc ArffFiles.cc Node.cc Network.cc CPPFImdlp.cpp Metrics.cpp)
add_executable(test test.cc)
target_link_libraries(BayesNet "${TORCH_LIBRARIES}")
target_link_libraries(test "${TORCH_LIBRARIES}")
add_subdirectory(src)
add_subdirectory(sample)