2024-03-08 00:09:39 +00:00
|
|
|
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)
|
2024-03-08 00:09:39 +00:00
|
|
|
|
2024-02-27 12:06:13 +00:00
|
|
|
include_directories(
|
2024-03-08 00:09:39 +00:00
|
|
|
lib/Files
|
|
|
|
lib/mdlp
|
|
|
|
lib/json/include
|
2024-03-09 11:45:03 +00:00
|
|
|
/usr/local/include
|
2024-02-27 12:06:13 +00:00
|
|
|
)
|
2024-03-08 00:09:39 +00:00
|
|
|
|
|
|
|
add_subdirectory(lib/Files)
|
|
|
|
add_subdirectory(lib/mdlp)
|
2024-02-27 12:06:13 +00:00
|
|
|
add_executable(bayesnet_sample sample.cc)
|
2024-03-08 00:09:39 +00:00
|
|
|
target_link_libraries(bayesnet_sample ArffFiles mdlp "${TORCH_LIBRARIES}" "${BayesNet}")
|