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
79ceff26
Commit
79ceff26
authored
Mar 31, 2011
by
James Goppert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved git submodule stuff out of cmake file.
parent
0ef47dea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
25 deletions
+7
-25
CMakeLists.txt
CMakeLists.txt
+3
-21
autobuild.sh
autobuild.sh
+4
-4
No files found.
CMakeLists.txt
View file @
79ceff26
...
...
@@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.6)
project
(
qgroundcontrol
)
# marcos
macro
(
find_or_build_from_source PACKAGE PACKAGE_PATH
IS_GIT_SUBMODULE
)
macro
(
find_or_build_from_source PACKAGE PACKAGE_PATH
)
add_custom_target
(
${
PACKAGE
}
)
if
(
NOT
${
PACKAGE
}
_BUILD_FROM_SOURCE
)
find_package
(
${
PACKAGE
}
)
...
...
@@ -14,11 +14,6 @@ macro(find_or_build_from_source PACKAGE PACKAGE_PATH IS_GIT_SUBMODULE)
add_custom_target
(
${
PACKAGE
}
_BUILD DEPENDS
${
PACKAGE
}
_BUILD.stamp
)
add_dependencies
(
${
PACKAGE
}
${
PACKAGE
}
_BUILD
)
set
(
${
PACKAGE
}
_FOUND TRUE
)
if
(
${
IS_GIT_SUBMODULE
}
)
message
(
STATUS
"
${
PACKAGE
}
detected as git submodule, will attempt to initialize it"
)
list
(
APPEND GIT_SUBMODULES
${
PACKAGE_PATH
}
)
add_dependencies
(
${
PACKAGE
}
_BUILD GIT
)
endif
()
endif
()
endmacro
(
find_or_build_from_source
)
...
...
@@ -103,18 +98,6 @@ include(CPack)
# add make dist target
add_custom_target
(
dist COMMAND
${
CMAKE_MAKE_PROGRAM
}
package_source
)
# git submodules
if
(
IS_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/.git
)
message
(
STATUS
"git repository detected, will attempt to load submodules"
)
set
(
FOUND_GIT_REPO TRUE
)
add_custom_command
(
OUTPUT GIT.stamp
COMMAND cd
${
PROJECT_SOURCE_DIR
}
&& git submodule init
${
GIT_SUBMODULES
}
COMMAND cd
${
PROJECT_SOURCE_DIR
}
&& git submodule update
${
GIT_SUBMODULES
}
)
add_custom_target
(
GIT DEPENDS GIT.stamp
)
else
()
set
(
FOUND_GIT_REPO FALSE
)
endif
()
# find libraries with cmake modules
find_package
(
Qt4 COMPONENTS QtGui QtCore QtNetwork QtOpenGL QtSVG QtXML QtPhonon QtWebKit REQUIRED
)
set
(
PHONON_FIND_QUIETLY FALSE
)
...
...
@@ -131,8 +114,8 @@ else()
set
(
OPENSCENEGRAPH_FOUND TRUE
)
endif
()
find_or_build_from_source
(
MAVLINK thirdParty/mavlink
FOUND_GIT_REPO
)
find_or_build_from_source
(
QSERIAL thirdParty/qserial
FOUND_GIT_REPO
)
find_or_build_from_source
(
MAVLINK thirdParty/mavlink
)
find_or_build_from_source
(
QSERIAL thirdParty/qserial
)
# build libraries from source if not found on system
if
(
MAVLINK_BUILD_FROM_SOURCE
)
...
...
@@ -202,7 +185,6 @@ if(QSERIAL_BUILD_FROM_SOURCE)
add_library
(
qserial
${
qserialMoc
}
${
qserialSrc
}
)
target_link_libraries
(
qserial
${
QT_LIBRARIES
}
)
set
(
QSERIAL_INCLUDE_DIRS
${
PROJECT_SOURCE_DIR
}
/thirdParty/qserial/include
${
PROJECT_SOURCE_DIR
}
/thirdParty/qserial/include/QtSerialPort
...
...
autobuild.sh
View file @
79ceff26
...
...
@@ -18,12 +18,12 @@ do
if
[
$OPT
=
"in_source_build"
]
&> /dev/null
then
echo
you chose
in
source
build
mkdir
-p
build
&&
cd
build
&&
cmake
-DIN_SRC_BUILD
:bool
=
TRUE ..
&&
make
$MAKEARGS
git submodule init
&&
git submodule update
&&
mkdir
-p
build
&&
cd
build
&&
cmake
-DIN_SRC_BUILD
:bool
=
TRUE ..
&&
make
$MAKEARGS
exit
0
elif
[
$OPT
=
"install_build"
]
&> /dev/null
then
echo
you chose
install
build
mkdir
-p
build
&&
cd
build
&&
cmake ..
&&
make
$MAKEARGS
git submodule init
&&
git submodule update
mkdir
-p
build
&&
cd
build
&&
cmake ..
&&
make
$MAKEARGS
exit
0
elif
[
$OPT
=
"grab_debian_dependencies"
]
&> /dev/null
then
...
...
@@ -40,13 +40,13 @@ do
elif
[
$OPT
=
"package_source"
]
&> /dev/null
then
echo
you chose to package the
source
mkdir
-p
build
&&
cd
build
&&
cmake ..
&&
make package_source
git submodule init
&&
git submodule update
&&
mkdir
-p
build
&&
cd
build
&&
cmake ..
&&
make package_source
exit
0
elif
[
$OPT
=
"package"
]
&> /dev/null
then
echo
you chose to package the binary
mkdir
-p
build
&&
cd
build
&&
cmake ..
&&
make package
git submodule init
&&
git submodule update
&&
mkdir
-p
build
&&
cd
build
&&
cmake ..
&&
make package
exit
0
elif
[
$OPT
=
"clean"
]
&> /dev/null
...
...
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