Last change
on this file since 86 was 73, checked in by Thomas Fuhrmann, 8 years ago |
Modify CMakeList for new files
|
File size:
659 bytes
|
Line | |
---|
1 | PROJECT(MavPlanner)
|
---|
2 | cmake_minimum_required(VERSION 2.8)
|
---|
3 |
|
---|
4 | include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
|
---|
5 | include(${FLAIR_USE_FILE})
|
---|
6 |
|
---|
7 | ADD_DEFINITIONS(-fpermissive)
|
---|
8 |
|
---|
9 | INCLUDE_DIRECTORIES(
|
---|
10 | ${FLAIR_INCLUDE_DIR}
|
---|
11 | ${CMAKE_SOURCE_DIR}/src
|
---|
12 | ${CMAKE_SOURCE_DIR}/src/mavlink_generated_messages/common
|
---|
13 | )
|
---|
14 |
|
---|
15 | FILE(GLOB MAVPLANNER_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
|
---|
16 |
|
---|
17 | ADD_EXECUTABLE(${PROJECT_NAME}
|
---|
18 | ${MAVPLANNER_SRC}
|
---|
19 | )
|
---|
20 |
|
---|
21 | TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT})
|
---|
22 |
|
---|
23 | INSTALL(
|
---|
24 | TARGETS ${PROJECT_NAME}
|
---|
25 | RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
|
---|
26 | )
|
---|
27 |
|
---|
28 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.