From f2802ba44175de1ab2f32712ec45b5f150c3cb98 Mon Sep 17 00:00:00 2001 From: Heiko Strathmann Date: Mon, 19 Mar 2018 13:54:18 +0000 Subject: [PATCH] remove libshogun example from all target, tests, and installation --- cmake/ShogunUtils.cmake | 3 +-- examples/undocumented/libshogun/CMakeLists.txt | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cmake/ShogunUtils.cmake b/cmake/ShogunUtils.cmake index 1915023e03b..e98a09453b5 100644 --- a/cmake/ShogunUtils.cmake +++ b/cmake/ShogunUtils.cmake @@ -104,7 +104,7 @@ ENDMACRO() MACRO(AddLibShogunExample EXAMPLE_CPP) STRING(REGEX REPLACE ".cpp\$" "" EXAMPLE "${EXAMPLE_CPP}") - add_executable(${EXAMPLE} ${CMAKE_CURRENT_SOURCE_DIR}/${EXAMPLE_CPP}) + add_executable(${EXAMPLE} EXCLUDE_FROM_ALL ${CMAKE_CURRENT_SOURCE_DIR}/${EXAMPLE_CPP}) if(WIN32) target_link_libraries(${EXAMPLE} shogun::shogun-static ${SANITIZER_LIBRARY}) else() @@ -113,7 +113,6 @@ MACRO(AddLibShogunExample EXAMPLE_CPP) IF(SANITIZER_FLAGS) set_target_properties(${EXAMPLE} PROPERTIES COMPILE_FLAGS ${SANITIZER_FLAGS}) ENDIF() - add_test(libshogun-${EXAMPLE} ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}) # Add examples to the dependencies of modular interfaces to make sure # nothing will infer with them being build single-threaded. diff --git a/examples/undocumented/libshogun/CMakeLists.txt b/examples/undocumented/libshogun/CMakeLists.txt index 7fd33ddc64b..4f420820718 100644 --- a/examples/undocumented/libshogun/CMakeLists.txt +++ b/examples/undocumented/libshogun/CMakeLists.txt @@ -50,7 +50,3 @@ FOREACH(EXAMPLE_CPP ${EXAMPLES_CPP}) AddLibShogunExample(${EXAMPLE_CPP}) LIST(APPEND EXAMPLE_TARGETS ${EXAMPLE}) ENDFOREACH() - -INSTALL(TARGETS ${EXAMPLE_TARGETS} - DESTINATION share/shogun/examples/libshogun - COMPONENT libshogun-examples)