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

Commit

Permalink
Remove test/example subdirectories, use what is provided by cmake (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenr authored Mar 4, 2019
1 parent dbd2e98 commit fda4171
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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()

0 comments on commit fda4171

Please sign in to comment.