forked from fairlight1337/libcflie
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
30 lines (22 loc) · 906 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 2.6)
project(cflie)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
set(${PROJECT_NAME}_VERSION_MAJOR_0)
set(${PROJECT_NAME}_VERSION_MINOR_1)
include_directories("${PROJECT_SOURCE_DIR}/include")
find_library(USB_LIB usb-1.0)
add_library(${PROJECT_NAME}
src/cflie/CCrazyRadio.cpp
src/cflie/CCrazyflie.cpp
src/cflie/CCRTPPacket.cpp
src/cflie/CTOC.cpp)
add_executable(ex-replugging src/examples/replugging.cpp)
add_executable(ex-simple src/examples/simple.cpp)
add_executable(ex-gui src/examples/gui.cpp)
target_link_libraries(${PROJECT_NAME} ${USB_LIB})
target_link_libraries(ex-replugging ${PROJECT_NAME})
target_link_libraries(ex-simple ${PROJECT_NAME})
target_link_libraries(ex-gui ${PROJECT_NAME} glfw GL GLU)
install(FILES include/cflie/*.h DESTINATION include)
install(FILES lib/* DESTINATION lib)