From 1e8822277532db72a3d5ec0c6b04fcb29959d1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana=20G=C3=B3mez?= Date: Wed, 10 Apr 2024 12:55:23 +0200 Subject: [PATCH] Update CMakeLists --- CMakeLists.txt | 3 ++- pyclfs/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 942002b..6c36ecc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,8 @@ endif (ENABLE_CLANG_TIDY) # External libraries - dependencies of PyClassifiers # -------------------------------------------------- -find_library(BayesNet NAMES libBayesNet BayesNet) +find_library(BayesNet NAMES libBayesNet BayesNet libBayesNet.a PATHS ${Platform_SOURCE_DIR}/../lib/lib REQUIRED) +find_path(Bayesnet_INCLUDE_DIRS REQUIRED NAMES bayesnet PATHS ${Platform_SOURCE_DIR}/../lib/include) # Subdirectories # -------------- diff --git a/pyclfs/CMakeLists.txt b/pyclfs/CMakeLists.txt index 1e329b9..541bb7e 100644 --- a/pyclfs/CMakeLists.txt +++ b/pyclfs/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories( ${Python3_INCLUDE_DIRS} ${TORCH_INCLUDE_DIRS} ${PyClassifiers_SOURCE_DIR}/lib/json/include - /usr/local/include + ${Bayesnet_INCLUDE_DIRS} ) add_library(PyClassifiers ODTE.cc STree.cc SVC.cc RandomForest.cc XGBoost.cc PyClassifier.cc PyWrap.cc) target_link_libraries(PyClassifiers ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::boost Boost::python Boost::numpy) \ No newline at end of file