Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
fffb1fcd
Commit
fffb1fcd
authored
5 years ago
by
Patrick José Pereira
Committed by
Daniel Agar
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake: Use Git module
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
64144ec9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-13
2 additions, 13 deletions
CMakeLists.txt
src/CMakeLists.txt
+1
-1
1 addition, 1 deletion
src/CMakeLists.txt
with
3 additions
and
14 deletions
CMakeLists.txt
+
2
−
13
View file @
fffb1fcd
...
@@ -34,25 +34,14 @@ set(COMPANY "Mavlink")
...
@@ -34,25 +34,14 @@ set(COMPANY "Mavlink")
set
(
COPYRIGHT
"Copyright (c) 2018 QGroundControl. All rights reserved."
)
set
(
COPYRIGHT
"Copyright (c) 2018 QGroundControl. All rights reserved."
)
set
(
IDENTIFIER
"io.mavlink.qgroundcontrol"
)
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
(
add_definitions
(
-DQGC_APPLICATION_NAME=
"QGroundControl"
-DQGC_APPLICATION_NAME=
"QGroundControl"
-DQGC_ORG_NAME=
"QGroundControl.org"
-DQGC_ORG_NAME=
"QGroundControl.org"
-DQGC_ORG_DOMAIN=
"org.qgroundcontrol"
-DQGC_ORG_DOMAIN=
"org.qgroundcontrol"
)
)
message
(
STATUS
"QGroundControl version:
${
git_tag
}
"
)
include
(
Git
)
message
(
STATUS
"QGroundControl version:
${
GIT_VERSION
}
"
)
#=============================================================================
#=============================================================================
# ccache
# ccache
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
1
−
1
View file @
fffb1fcd
...
@@ -106,7 +106,7 @@ add_library(qgc
...
@@ -106,7 +106,7 @@ add_library(qgc
TerrainTile.cc
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
)
add_subdirectory
(
ui
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment