From 07934419af72fdf05154df5d988944a7de52b327 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 14 Nov 2019 12:26:15 -0500 Subject: [PATCH] cmake: MissionManager add TakeoffMissionItem --- cmake/Qt5QGCConfiguration.cmake | 2 +- libs/shapelib/CMakeLists.txt | 6 ++++-- src/MissionManager/CMakeLists.txt | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cmake/Qt5QGCConfiguration.cmake b/cmake/Qt5QGCConfiguration.cmake index 6f8cd59ae..42e552cee 100644 --- a/cmake/Qt5QGCConfiguration.cmake +++ b/cmake/Qt5QGCConfiguration.cmake @@ -4,7 +4,7 @@ endif() if(NOT QT_VERSION) # try Qt 5.12.0 if none specified, last LTS. - set(QT_VERSION "5.12.0") + set(QT_VERSION "5.12.5") endif() if(DEFINED ENV{QT_MKSPEC}) diff --git a/libs/shapelib/CMakeLists.txt b/libs/shapelib/CMakeLists.txt index f581a8e87..f231201ea 100644 --- a/libs/shapelib/CMakeLists.txt +++ b/libs/shapelib/CMakeLists.txt @@ -39,6 +39,8 @@ add_compile_options( -Wno-return-type ) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + # Use rpath? if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") # No rpath on Darwin. Setting it will only cause trouble. @@ -175,7 +177,7 @@ if(BUILD_TEST) endif(BUILD_TEST) foreach(executable ${executables}) - add_executable(${executable} ${executable}.c) + add_executable(${executable} EXCLUDE_FROM_ALL ${executable}.c) target_link_libraries(${executable} shp) if(USE_RPATH) set_target_properties(${executable} @@ -200,7 +202,7 @@ if(BUILD_TEST) # Other executables to be built to facilitate tests. foreach(executable shptest shputils) - add_executable(${executable} ${executable}.c) + add_executable(${executable} EXCLUDE_FROM_ALL ${executable}.c) target_link_libraries(${executable} shp) get_target_property(${executable}_LOC ${executable} LOCATION) file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/script.sed "s?\\./${executable}?${${executable}_LOC}?\n") diff --git a/src/MissionManager/CMakeLists.txt b/src/MissionManager/CMakeLists.txt index 63af502aa..06e50161e 100644 --- a/src/MissionManager/CMakeLists.txt +++ b/src/MissionManager/CMakeLists.txt @@ -119,6 +119,8 @@ add_library(MissionManager SurveyComplexItem.h SurveyPlanCreator.cc SurveyPlanCreator.h + TakeoffMissionItem.cc + TakeoffMissionItem.h TransectStyleComplexItem.cc TransectStyleComplexItem.h VisualMissionItem.cc -- 2.22.0