Update CMakeLists and conanfile

This commit is contained in:
2025-07-03 19:13:32 +02:00
parent 004528be8c
commit bedd2b5722
15 changed files with 227 additions and 899 deletions

View File

@@ -1,8 +1,10 @@
include_directories(
${Python3_INCLUDE_DIRS}
${TORCH_INCLUDE_DIRS}
${PyClassifiers_SOURCE_DIR}/lib/json/include
${Bayesnet_INCLUDE_DIRS}
)
add_library(PyClassifiers ODTE.cc STree.cc SVC.cc RandomForest.cc XGBoost.cc AdaBoostPy.cc PyClassifier.cc PyWrap.cc)
target_link_libraries(PyClassifiers nlohmann_json::nlohmann_json ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::boost Boost::python Boost::numpy)
target_link_libraries(PyClassifiers PRIVATE
nlohmann_json::nlohmann_json torch::torch
Boost::boost Boost::python Boost::numpy
bayesnet::bayesnet
)