BayesNet/sample/CMakeLists.txt

19 lines
437 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.20)
project(bayesnet_sample)
set(CMAKE_CXX_STANDARD 17)
find_package(Torch REQUIRED)
2024-03-09 11:27:05 +00:00
find_library(BayesNet NAMES BayesNet.a libBayesNet.a REQUIRED)
include_directories(
2024-06-23 11:02:40 +00:00
../tests/lib/Files
lib/mdlp
lib/json/include
2024-03-09 11:45:03 +00:00
/usr/local/include
)
add_subdirectory(lib/mdlp)
add_executable(bayesnet_sample sample.cc)
target_link_libraries(bayesnet_sample mdlp "${TORCH_LIBRARIES}" "${BayesNet}")