Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Remove test/example subdirectories, use what is provided by cmake #212

Merged
merged 1 commit into from
Mar 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function(setup_example example_directory)
EXPORT ${PROJECT_NAME}-targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/examples
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT Examples
)
endforeach()
Expand All @@ -41,3 +41,5 @@ endif()

setup_example(heart_rate_monitor)
setup_example(heart_rate_collector)

message(STATUS "Compiled examples are installed in directory \"${CMAKE_INSTALL_BINDIR}\"")
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function(setup_test)
EXPORT ${PROJECT_NAME}-targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/tests
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT Tests
)
endfunction(setup_test)
Expand Down Expand Up @@ -436,4 +436,6 @@ if(TEST_SOFTDEVICE_API)
setup_test_run()
add_run_test_targets()
endif()

message(STATUS "Compiled tests are installed in directory \"${CMAKE_INSTALL_BINDIR}\"")
endif()