Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
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
cmake: Use Git module
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
64144ec9
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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