2023-07-17 20:51:15 +00:00
|
|
|
if(ENABLE_TESTING)
|
2024-01-07 18:58:22 +00:00
|
|
|
include_directories(
|
2024-05-21 11:50:19 +00:00
|
|
|
${BayesNet_SOURCE_DIR}/tests/lib/Files
|
2024-01-07 18:58:22 +00:00
|
|
|
${BayesNet_SOURCE_DIR}/lib/folding
|
2024-07-04 16:52:41 +00:00
|
|
|
${BayesNet_SOURCE_DIR}/lib/mdlp/src
|
2024-01-07 18:58:22 +00:00
|
|
|
${BayesNet_SOURCE_DIR}/lib/json/include
|
2024-03-08 21:20:54 +00:00
|
|
|
${BayesNet_SOURCE_DIR}
|
2024-03-09 11:45:03 +00:00
|
|
|
${CMAKE_BINARY_DIR}/configured_files/include
|
2024-01-07 18:58:22 +00:00
|
|
|
)
|
2024-03-08 21:20:54 +00:00
|
|
|
file(GLOB_RECURSE BayesNet_SOURCES "${BayesNet_SOURCE_DIR}/bayesnet/*.cc")
|
2024-04-08 17:09:51 +00:00
|
|
|
add_executable(TestBayesNet TestBayesNetwork.cc TestBayesNode.cc TestBayesClassifier.cc
|
2024-05-12 10:22:44 +00:00
|
|
|
TestBayesModels.cc TestBayesMetrics.cc TestFeatureSelection.cc TestBoostAODE.cc TestA2DE.cc
|
2024-11-23 17:22:41 +00:00
|
|
|
TestUtils.cc TestBayesEnsemble.cc TestModulesVersions.cc TestBoostA2DE.cc TestMST.cc ${BayesNet_SOURCES})
|
|
|
|
target_link_libraries(TestBayesNet PUBLIC "${TORCH_LIBRARIES}" fimdlp PRIVATE Catch2::Catch2WithMain)
|
2024-04-02 15:38:48 +00:00
|
|
|
add_test(NAME BayesNetworkTest COMMAND TestBayesNet)
|
2024-05-15 17:49:15 +00:00
|
|
|
add_test(NAME A2DE COMMAND TestBayesNet "[A2DE]")
|
|
|
|
add_test(NAME BoostA2DE COMMAND TestBayesNet "[BoostA2DE]")
|
|
|
|
add_test(NAME BoostAODE COMMAND TestBayesNet "[BoostAODE]")
|
2024-04-07 22:55:30 +00:00
|
|
|
add_test(NAME Classifier COMMAND TestBayesNet "[Classifier]")
|
2024-04-08 17:09:51 +00:00
|
|
|
add_test(NAME Ensemble COMMAND TestBayesNet "[Ensemble]")
|
2024-05-15 17:49:15 +00:00
|
|
|
add_test(NAME FeatureSelection COMMAND TestBayesNet "[FeatureSelection]")
|
|
|
|
add_test(NAME Metrics COMMAND TestBayesNet "[Metrics]")
|
2024-04-02 15:38:48 +00:00
|
|
|
add_test(NAME Models COMMAND TestBayesNet "[Models]")
|
2024-05-12 10:22:44 +00:00
|
|
|
add_test(NAME Modules COMMAND TestBayesNet "[Modules]")
|
2024-05-15 17:49:15 +00:00
|
|
|
add_test(NAME Network COMMAND TestBayesNet "[Network]")
|
|
|
|
add_test(NAME Node COMMAND TestBayesNet "[Node]")
|
2024-11-23 17:22:41 +00:00
|
|
|
add_test(NAME MST COMMAND TestBayesNet "[MST]")
|
2023-07-17 20:51:15 +00:00
|
|
|
endif(ENABLE_TESTING)
|