Update config
This commit is contained in:
10
.gitmodules
vendored
10
.gitmodules
vendored
@@ -1,10 +0,0 @@
|
|||||||
|
|
||||||
[submodule "lib/json"]
|
|
||||||
path = lib/json
|
|
||||||
url = https://github.com/nlohmann/json.git
|
|
||||||
[submodule "lib/catch2"]
|
|
||||||
path = lib/catch2
|
|
||||||
url = https://github.com/catchorg/Catch2.git
|
|
||||||
[submodule "lib/mdlp"]
|
|
||||||
path = lib/mdlp
|
|
||||||
url = https://github.com/rmontanana/mdlp
|
|
@@ -45,6 +45,8 @@ endif()
|
|||||||
find_package(Python3 3.11 COMPONENTS Interpreter Development REQUIRED)
|
find_package(Python3 3.11 COMPONENTS Interpreter Development REQUIRED)
|
||||||
message("Python3_LIBRARIES=${Python3_LIBRARIES}")
|
message("Python3_LIBRARIES=${Python3_LIBRARIES}")
|
||||||
|
|
||||||
|
find_package(nlohmann_json CONFIG REQUIRED)
|
||||||
|
|
||||||
# CMakes modules
|
# CMakes modules
|
||||||
# --------------
|
# --------------
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
|
||||||
@@ -64,9 +66,11 @@ endif (ENABLE_CLANG_TIDY)
|
|||||||
|
|
||||||
# External libraries - dependencies of PyClassifiers
|
# External libraries - dependencies of PyClassifiers
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
find_library(BayesNet NAMES libBayesNet BayesNet libBayesNet.a PATHS ${PyClassifiers_SOURCE_DIR}/../lib/lib REQUIRED)
|
# find_library(BayesNet NAMES libBayesNet BayesNet libBayesNet.a PATHS ${PyClassifiers_SOURCE_DIR}/../lib/lib REQUIRED)
|
||||||
find_path(Bayesnet_INCLUDE_DIRS REQUIRED NAMES bayesnet PATHS ${PyClassifiers_SOURCE_DIR}/../lib/include)
|
# find_path(Bayesnet_INCLUDE_DIRS REQUIRED NAMES bayesnet PATHS ${PyClassifiers_SOURCE_DIR}/../lib/include)
|
||||||
message(STATUS "BayesNet=${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)
|
||||||
|
message(STATUS "BayesNet=${bayesnet}")
|
||||||
message(STATUS "Bayesnet_INCLUDE_DIRS=${Bayesnet_INCLUDE_DIRS}")
|
message(STATUS "Bayesnet_INCLUDE_DIRS=${Bayesnet_INCLUDE_DIRS}")
|
||||||
|
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@@ -59,7 +59,7 @@ release: ## Build a Release version of the project
|
|||||||
@echo ">>> Building Release PyClassifiers...";
|
@echo ">>> Building Release PyClassifiers...";
|
||||||
@if [ -d ./$(f_release) ]; then rm -rf ./$(f_release); fi
|
@if [ -d ./$(f_release) ]; then rm -rf ./$(f_release); fi
|
||||||
@mkdir $(f_release);
|
@mkdir $(f_release);
|
||||||
@cmake -S . -B $(f_release) -D CMAKE_BUILD_TYPE=Release
|
@cmake -S . -B $(f_release) -D CMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake
|
||||||
@echo ">>> Done";
|
@echo ">>> Done";
|
||||||
|
|
||||||
opt = ""
|
opt = ""
|
||||||
|
Submodule lib/catch2 deleted from 506276c592
1
lib/json
1
lib/json
Submodule lib/json deleted from 48e7b4c23b
1
lib/mdlp
1
lib/mdlp
Submodule lib/mdlp deleted from 7d62d6af4a
@@ -5,4 +5,4 @@ include_directories(
|
|||||||
${Bayesnet_INCLUDE_DIRS}
|
${Bayesnet_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
add_library(PyClassifiers ODTE.cc STree.cc SVC.cc RandomForest.cc XGBoost.cc PyClassifier.cc PyWrap.cc)
|
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)
|
target_link_libraries(PyClassifiers nlohmann_json::nlohmann_json ${Python3_LIBRARIES} "${TORCH_LIBRARIES}" ${LIBTORCH_PYTHON} Boost::boost Boost::python Boost::numpy)
|
21
vcpkg-configuration.json
Normal file
21
vcpkg-configuration.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"default-registry": {
|
||||||
|
"kind": "git",
|
||||||
|
"baseline": "760bfd0c8d7c89ec640aec4df89418b7c2745605",
|
||||||
|
"repository": "https://github.com/microsoft/vcpkg"
|
||||||
|
},
|
||||||
|
"registries": [
|
||||||
|
{
|
||||||
|
"kind": "git",
|
||||||
|
"repository": "https://github.com/rmontanana/vcpkg-stash",
|
||||||
|
"baseline": "1ea69243c0e8b0de77c9d1dd6e1d7593ae7f3627",
|
||||||
|
"packages": [
|
||||||
|
"arff-files",
|
||||||
|
"bayesnet",
|
||||||
|
"fimdlp",
|
||||||
|
"folding",
|
||||||
|
"libtorch-bin"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
47
vcpkg.json
Normal file
47
vcpkg.json
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"name": "platform",
|
||||||
|
"version-string": "1.1.0",
|
||||||
|
"dependencies": [
|
||||||
|
"arff-files",
|
||||||
|
"nlohmann-json",
|
||||||
|
"fimdlp",
|
||||||
|
"libtorch-bin",
|
||||||
|
"folding",
|
||||||
|
"argparse",
|
||||||
|
"libxlsxwriter"
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"name": "arff-files",
|
||||||
|
"version": "1.1.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "fimdlp",
|
||||||
|
"version": "2.0.1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "libtorch-bin",
|
||||||
|
"version": "2.7.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "bayesnet",
|
||||||
|
"version": "1.1.1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "folding",
|
||||||
|
"version": "1.1.1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "argpase",
|
||||||
|
"version": "3.2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "libxlsxwriter",
|
||||||
|
"version": "1.2.2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nlohmann-json",
|
||||||
|
"version": "3.11.3"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user