diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-10 22:03:29 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-10 22:18:46 +0200 |
commit | adfbf84fb43e75c83896bc9d38a39b9efc5989b1 (patch) | |
tree | 51891dba1d64a2960dc2a4442c6f80fb2054fe90 /sensor | |
parent | af63bd5688731b57551ac161c0dad26a0b4557d7 (diff) | |
download | ble-toys-adfbf84fb43e75c83896bc9d38a39b9efc5989b1.tar.gz ble-toys-adfbf84fb43e75c83896bc9d38a39b9efc5989b1.tar.bz2 ble-toys-adfbf84fb43e75c83896bc9d38a39b9efc5989b1.tar.xz ble-toys-adfbf84fb43e75c83896bc9d38a39b9efc5989b1.zip |
o Adding support for installing the code.
Diffstat (limited to 'sensor')
-rw-r--r-- | sensor/CMakeLists.txt | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sensor/CMakeLists.txt b/sensor/CMakeLists.txt index d571e38..c814687 100644 --- a/sensor/CMakeLists.txt +++ b/sensor/CMakeLists.txt @@ -1,14 +1,22 @@ file(GLOB_RECURSE INCLUDES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} include/*.h) add_library(trygvis-sensor - main/sensor.cpp - main/io.cpp - ${INCLUDES}) + STATIC + main/sensor.cpp + main/io.cpp + ${INCLUDES}) -include_directories("${PROJECT_SOURCE_DIR}/json/src") -include_directories(include) +target_include_directories(trygvis-sensor PUBLIC "${PROJECT_SOURCE_DIR}/json/src") +target_include_directories(trygvis-sensor PUBLIC include) # Boost find_package(Boost COMPONENTS regex system REQUIRED) add_subdirectory(test) + +install(TARGETS trygvis-sensor + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib/trygvis + ARCHIVE DESTINATION lib/trygvis) + +install(DIRECTORY include/trygvis DESTINATION include) |