Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
d4492ef5
Commit
d4492ef5
authored
Jun 30, 2019
by
Tomaz Canabrava
Committed by
Daniel Agar
Jun 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract CMake Deploy information
parent
40a20763
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
52 deletions
+50
-52
CMakeLists.txt
CMakeLists.txt
+1
-52
QGCDeploy.cmake
cmake/QGCDeploy.cmake
+49
-0
No files found.
CMakeLists.txt
View file @
d4492ef5
...
...
@@ -152,56 +152,5 @@ if(NOT QT_MKSPEC MATCHES "winrt")
)
endif
()
if
(
LINUX
)
elseif
(
APPLE
)
get_target_property
(
_qmake_executable Qt5::qmake IMPORTED_LOCATION
)
get_filename_component
(
_qt_bin_dir
"
${
_qmake_executable
}
"
DIRECTORY
)
find_program
(
MACDEPLOYQT_EXECUTABLE macdeployqt HINTS
"
${
_qt_bin_dir
}
"
)
add_custom_command
(
TARGET QGroundControl
POST_BUILD
COMMAND
${
MACDEPLOYQT_EXECUTABLE
}
$<TARGET_FILE_DIR:QGroundControl>/../.. -appstore-compliant -qmldir=
${
CMAKE_SOURCE_DIR
}
/src
COMMAND
rsync -a
${
CMAKE_SOURCE_DIR
}
/libs/lib/Frameworks $<TARGET_FILE_DIR:QGroundControl>/../../Contents/
COMMAND
${
CMAKE_INSTALL_NAME_TOOL
}
-change
"@rpath/SDL2.framework/Versions/A/SDL2"
"@executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2"
$<TARGET_FILE:QGroundControl>
)
set_target_properties
(
QGroundControl PROPERTIES MACOSX_BUNDLE YES
)
elseif
(
WIN32
)
if
(
MSVC
)
# Check if we are using the Visual Studio compiler
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES
WIN32_EXECUTABLE YES
LINK_FLAGS
"/ENTRY:mainCRTStartup"
)
endif
()
# deploy
include
(
Windeployqt
)
windeployqt
(
QGroundControl
"QGroundControl-installer.exe"
)
elseif
(
ANDROID
)
include
(
AddQtAndroidApk
)
add_qt_android_apk
(
QGroundControl.apk QGroundControl
PACKAGE_NAME
"io.mavlink.qgroundcontrol"
#KEYSTORE ${CMAKE_CURRENT_LIST_DIR}/mykey.keystore myalias
#KEYSTORE_PASSWORD xxxxx
)
elseif
(
LINUX
)
# TODO: investigate https://github.com/probonopd/linuxdeployqt
add_custom_command
(
OUTPUT
${
CMAKE_BINARY_DIR
}
/release/package/QGroundControl.AppImage
COMMAND
${
CMAKE_SOURCE_DIR
}
/deploy/create_linux_appimage.sh
${
CMAKE_SOURCE_DIR
}
${
CMAKE_BINARY_DIR
}
${
CMAKE_BINARY_DIR
}
/release/package;
DEPENDS QGroundControl
USES_TERMINAL
)
add_custom_target
(
appimage DEPENDS
${
CMAKE_BINARY_DIR
}
/release/package/QGroundControl.AppImage
)
endif
()
include
(
QGCDeploy
)
cmake/QGCDeploy.cmake
0 → 100644
View file @
d4492ef5
if
(
LINUX
)
# TODO: investigate https://github.com/probonopd/linuxdeployqt
add_custom_command
(
OUTPUT
${
CMAKE_BINARY_DIR
}
/release/package/QGroundControl.AppImage
COMMAND
${
CMAKE_SOURCE_DIR
}
/deploy/create_linux_appimage.sh
${
CMAKE_SOURCE_DIR
}
${
CMAKE_BINARY_DIR
}
${
CMAKE_BINARY_DIR
}
/release/package;
DEPENDS QGroundControl
USES_TERMINAL
)
add_custom_target
(
appimage DEPENDS
${
CMAKE_BINARY_DIR
}
/release/package/QGroundControl.AppImage
)
elseif
(
APPLE
)
get_target_property
(
_qmake_executable Qt5::qmake IMPORTED_LOCATION
)
get_filename_component
(
_qt_bin_dir
"
${
_qmake_executable
}
"
DIRECTORY
)
find_program
(
MACDEPLOYQT_EXECUTABLE macdeployqt HINTS
"
${
_qt_bin_dir
}
"
)
add_custom_command
(
TARGET QGroundControl
POST_BUILD
COMMAND
${
MACDEPLOYQT_EXECUTABLE
}
$<TARGET_FILE_DIR:QGroundControl>/../.. -appstore-compliant -qmldir=
${
CMAKE_SOURCE_DIR
}
/src
COMMAND
rsync -a
${
CMAKE_SOURCE_DIR
}
/libs/lib/Frameworks $<TARGET_FILE_DIR:QGroundControl>/../../Contents/
COMMAND
${
CMAKE_INSTALL_NAME_TOOL
}
-change
"@rpath/SDL2.framework/Versions/A/SDL2"
"@executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2"
$<TARGET_FILE:QGroundControl>
)
set_target_properties
(
QGroundControl PROPERTIES MACOSX_BUNDLE YES
)
elseif
(
WIN32
)
if
(
MSVC
)
# Check if we are using the Visual Studio compiler
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES
WIN32_EXECUTABLE YES
LINK_FLAGS
"/ENTRY:mainCRTStartup"
)
endif
()
# deploy
include
(
Windeployqt
)
windeployqt
(
QGroundControl
"QGroundControl-installer.exe"
)
elseif
(
ANDROID
)
include
(
AddQtAndroidApk
)
add_qt_android_apk
(
QGroundControl.apk QGroundControl
PACKAGE_NAME
"io.mavlink.qgroundcontrol"
#KEYSTORE ${CMAKE_CURRENT_LIST_DIR}/mykey.keystore myalias
#KEYSTORE_PASSWORD xxxxx
)
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment