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

Commit

Permalink
Fix/install dirs for tests examples (#213)
Browse files Browse the repository at this point in the history
* Remove test/example subdirectories of bin
* Include GNUInstallDirs so that vars are set
  • Loading branch information
kenr authored Mar 4, 2019
1 parent 66f80bd commit cb808c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include(GNUInstallDirs)

function(setup_example example_directory)
set(EXAMPLE_NAME_BASE "${example_directory}")
file(GLOB EXAMPLE_SOURCE_FILES "${example_directory}/*.c")
Expand Down
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include(GNUInstallDirs)

if(MSVC)
add_definitions(-DPC_BLE_DRIVER_STATIC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
Expand Down

0 comments on commit cb808c3

Please sign in to comment.