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
fffb1fcd
Commit
fffb1fcd
authored
Jan 15, 2020
by
Patrick José Pereira
Committed by
Daniel Agar
Jan 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Use Git module
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
64144ec9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
+3
-14
CMakeLists.txt
CMakeLists.txt
+2
-13
CMakeLists.txt
src/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
fffb1fcd
...
...
@@ -34,25 +34,14 @@ set(COMPANY "Mavlink")
set
(
COPYRIGHT
"Copyright (c) 2018 QGroundControl. All rights reserved."
)
set
(
IDENTIFIER
"io.mavlink.qgroundcontrol"
)
execute_process
(
COMMAND git submodule update --init
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
)
execute_process
(
COMMAND git describe --always --tags
OUTPUT_VARIABLE git_tag
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
)
add_definitions
(
-DQGC_APPLICATION_NAME=
"QGroundControl"
-DQGC_ORG_NAME=
"QGroundControl.org"
-DQGC_ORG_DOMAIN=
"org.qgroundcontrol"
)
message
(
STATUS
"QGroundControl version:
${
git_tag
}
"
)
include
(
Git
)
message
(
STATUS
"QGroundControl version:
${
GIT_VERSION
}
"
)
#=============================================================================
# ccache
...
...
src/CMakeLists.txt
View file @
fffb1fcd
...
...
@@ -106,7 +106,7 @@ add_library(qgc
TerrainTile.cc
)
set_source_files_properties
(
QGCApplication.cc PROPERTIES COMPILE_DEFINITIONS GIT_VERSION=
"
${
git_tag
}
"
)
set_source_files_properties
(
QGCApplication.cc PROPERTIES COMPILE_DEFINITIONS GIT_VERSION=
"
${
GIT_VERSION
}
"
)
add_subdirectory
(
ui
)
...
...
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