Update CMakeLists for Linux

This commit is contained in:
Ricardo Montañana Gómez 2023-10-13 14:01:52 +02:00
parent 54b8939f35
commit 977ff6fddb
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE

View File

@ -11,7 +11,7 @@ add_executable(b_list list.cc Datasets.cc Dataset.cc)
add_executable(b_best best.cc BestResults.cc Result.cc Statistics.cc BestResultsExcel.cc ExcelFile.cc)
add_executable(testx testx.cpp Datasets.cc Dataset.cc Folding.cc )
target_link_libraries(b_main BayesNet ArffFiles mdlp "${TORCH_LIBRARIES}")
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
if ( CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(b_manage "${TORCH_LIBRARIES}" libxlsxwriter.so ArffFiles mdlp stdc++fs)
target_link_libraries(b_best Boost::boost libxlsxwriter.so stdc++fs)
else()