BayesNet/CMakeLists.txt

17 lines
503 B
CMake
Raw Normal View History

2023-06-29 20:00:41 +00:00
cmake_minimum_required(VERSION 3.20)
project(bayesnet)
find_package(Torch REQUIRED)
if (POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif ()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
# add_library(BayesNet Node.cc Network.cc)
2023-06-30 00:46:06 +00:00
add_executable(BayesNet main.cc ArffFiles.cc Node.cc Network.cc CPPFImdlp.cpp Metrics.cpp)
2023-06-30 19:24:12 +00:00
add_executable(test test.cc)
target_link_libraries(BayesNet "${TORCH_LIBRARIES}")
target_link_libraries(test "${TORCH_LIBRARIES}")