Add conan integration
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
if(ENABLE_TESTING)
|
||||
include_directories(
|
||||
${Folding_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}/configured_files/include
|
||||
)
|
||||
set(TEST_FOLDING "unit_tests_folding")
|
||||
add_executable(${TEST_FOLDING} TestFolding.cc TestUtils.cc)
|
||||
target_link_libraries(${TEST_FOLDING} PUBLIC
|
||||
${TORCH_LIBRARIES}
|
||||
arff-files::arff-files
|
||||
fimdlp::fimdlp
|
||||
Catch2::Catch2WithMain
|
||||
)
|
||||
add_test(NAME ${TEST_FOLDING} COMMAND ${TEST_FOLDING})
|
||||
endif(ENABLE_TESTING)
|
||||
set(TEST_FOLDING "unit_tests_folding")
|
||||
add_executable(${TEST_FOLDING} TestFolding.cc TestUtils.cc)
|
||||
target_include_directories(${TEST_FOLDING} PRIVATE
|
||||
${CMAKE_BINARY_DIR}/configured_files/include
|
||||
${Folding_SOURCE_DIR}
|
||||
${catch2_INCLUDE_DIRS_RELEASE}
|
||||
${libtorch_INCLUDE_DIRS_RELEASE}
|
||||
${arff-files_INCLUDE_DIRS_RELEASE}
|
||||
${fimdlp_INCLUDE_DIRS_RELEASE}
|
||||
)
|
||||
target_link_libraries(${TEST_FOLDING} PUBLIC
|
||||
${Torch_LIBRARIES}
|
||||
arff-files::arff-files
|
||||
fimdlp::fimdlp
|
||||
Catch2::Catch2WithMain
|
||||
)
|
||||
add_test(NAME ${TEST_FOLDING} COMMAND ${TEST_FOLDING})
|
||||
|
@@ -6,8 +6,8 @@
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <tuple>
|
||||
#include "ArffFiles.h"
|
||||
#include "CPPFImdlp.h"
|
||||
#include "ArffFiles.hpp"
|
||||
#include "fimdlp/CPPFImdlp.h"
|
||||
|
||||
bool file_exists(const std::string& name);
|
||||
std::pair<vector<mdlp::labels_t>, map<std::string, int>> discretize(std::vector<mdlp::samples_t>& X, mdlp::labels_t& y, std::vector<string> features);
|
||||
@@ -44,7 +44,7 @@ class Paths {
|
||||
public:
|
||||
static std::string datasets()
|
||||
{
|
||||
return "../../tests/data/";
|
||||
return "data/";
|
||||
}
|
||||
static std::string csv()
|
||||
{
|
||||
|
Reference in New Issue
Block a user