Skip to content

Commit

Permalink
CMake: added missing install targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbogusz committed Mar 11, 2017
1 parent c11b224 commit f6fc79b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ endif ()
target_include_directories (vl53l0x PUBLIC ${WIRINGPI_INCLUDE_DIR})
target_link_libraries (vl53l0x LINK_PUBLIC ${WIRINGPI_LIBRARIES})

### Install target
set (CMAKE_INSTALL_PREFIX /usr/)
install(TARGETS vl53l0x
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install(FILES
"VL53L0X.h"
DESTINATION include
)

### Examples
add_subdirectory (examples)

Expand Down

0 comments on commit f6fc79b

Please sign in to comment.