Skip to content

Commit

Permalink
remove libshogun examples from all target, tests, and installation
Browse files Browse the repository at this point in the history
also remove minimal example
  • Loading branch information
karlnapf committed Mar 19, 2018
1 parent 499d189 commit 4a42cc9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 32 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Expand Up @@ -567,11 +567,6 @@ IF(EXISTS ${CMAKE_SOURCE_DIR}/examples)
add_subdirectory(${CMAKE_SOURCE_DIR}/examples)
ENDIF()

# always build minimal example(s)
IF(EXISTS ${CMAKE_SOURCE_DIR}/examples/minimal)
add_subdirectory(${CMAKE_SOURCE_DIR}/examples/minimal)
ENDIF()

IF(BUILD_META_EXAMPLES)
# allow meta examples without adding examples dir itself
add_subdirectory(${CMAKE_SOURCE_DIR}/examples/meta)
Expand Down
3 changes: 1 addition & 2 deletions cmake/ShogunUtils.cmake
Expand Up @@ -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()
Expand All @@ -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.
Expand Down
11 changes: 0 additions & 11 deletions examples/minimal/CMakeLists.txt

This file was deleted.

10 changes: 0 additions & 10 deletions examples/minimal/minimal.cpp

This file was deleted.

4 changes: 0 additions & 4 deletions examples/undocumented/libshogun/CMakeLists.txt
Expand Up @@ -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)

0 comments on commit 4a42cc9

Please sign in to comment.