libcreate/CMakeLists.txt
2016-02-12 17:44:30 -08:00

48 lines
1 KiB
CMake

cmake_minimum_required(VERSION 2.8.3)
project(libcreate)
find_package(Boost REQUIRED system thread)
## Specify additional locations of header files
include_directories(
include
)
## Declare cpp library
add_library(create
src/create.cpp
src/serial.cpp
src/data.cpp
src/packet.cpp
)
target_link_libraries(create
${Boost_LIBRARIES}
)
## Declare example executables
add_executable(create_demo examples/create_demo.cpp)
add_executable(odom_test examples/odom_test.cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(create_demo
${Boost_LIBRARIES}
create
)
target_link_libraries(odom_test
${Boost_LIBRARIES}
create
)
## Install
## I'm not familiar with install rules, do these make sense?
install(TARGETS create DESTINATION lib)
install(FILES
include/create/create.h
include/create/serial.h
include/create/types.h
include/create/data.h
include/create/packet.h
include/create/util.h
DESTINATION include/create)