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
e32dc6e0
Commit
e32dc6e0
authored
Feb 26, 2011
by
James Goppert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on cmake osg bug.
parent
10163483
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
CMakeLists.txt
CMakeLists.txt
+17
-14
No files found.
CMakeLists.txt
View file @
e32dc6e0
...
...
@@ -75,10 +75,6 @@ endif(NOT CMAKE_BUILD_TYPE)
enable_language
(
C
)
enable_language
(
CXX
)
# initialize variables
set
(
qgroundcontrol_LIBRARIES qgroundcontrolNavigation qgroundcontrolCommunication
)
set
(
SCICOSLAB_BLOCKS stdBlocks;jsbsimBlocks;mavlinkBlocks
)
# installer
include
(
InstallRequiredSystemLibraries
)
set
(
CPACK_PACKAGE_FILE_NAME
"
${
PROJECT_NAME
}
-
${
qgroundcontrol_VERSION
}
"
)
...
...
@@ -125,7 +121,8 @@ if (UNIX)
find_package
(
Flite
)
endif
(
UNIX
)
find_package
(
OpenGL REQUIRED
)
find_package
(
OpenSceneGraph 2.8.3 COMPONENTS osgGA osgDB osgUtil osgViewer
)
find_package
(
OpenSceneGraph 2.9.9
)
#COMPONENTS osgGA osgDB osgUtil osgViewer)
find_or_build_from_source
(
MAVLINK thirdParty/mavlink FOUND_GIT_REPO
)
# build libraries from source if not found on system
...
...
@@ -196,43 +193,49 @@ if (MAVLINK_FOUND)
message
(
STATUS
"
\t\t
MAVLINK
\t\t
YES"
)
list
(
APPEND qgroundcontrolIncludes
${
MAVLINK_INCLUDE_DIRS
}
)
else
()
message
(
STATUS
"
\t\t
OpenSceneGraph
\t\t
NO"
)
endif
(
MAVLINK_FOUND
)
message
(
STATUS
"
\t\t
MAVLINK
\t
NO"
)
endif
()
message
(
STATUS
"OSG_FOUND:
${
OPENSCENEGRAPH_FOUND
}
"
)
if
(
OPENSCENEGRAPH_FOUND
)
message
(
STATUS
"
\t\t
OpenSceneGraph
\t
YES"
)
list
(
APPEND qgroundcontrolIncludes
${
OPENSCENEGRAPH_INCLUDE_DIRS
}
)
list
(
APPEND qgroundcontrolLibs
${
SDL_LIBRARY
}
)
list
(
APPEND qgroundcontrolLibs
${
OPENSCENEGRAPH_LIBRARIES
}
)
else
()
message
(
STATUS
"
\t\t
OpenSceneGraph
\t\t
NO"
)
endif
(
OPENSCENEGRAPH_FOUND
)
endif
()
if
(
QT4_FOUND
)
message
(
STATUS
"
\t\t
QT4
\t\t
YES"
)
list
(
APPEND qgroundcontrolIncludes
${
QT_INCLUDE_DIRS
}
)
list
(
APPEND qgroundcontrolLibs
${
QT_LIBRARIES
}
)
else
()
message
(
STATUS
"
\t\t
QT4
\t\t
NO"
)
endif
(
QT4_FOUND
)
endif
()
if
(
PHONON_FOUND
)
message
(
STATUS
"
\t\t
PHONON
\t\t
YES"
)
list
(
APPEND qgroundcontrolIncludes
${
PHONON_INCLUDES
}
)
list
(
APPEND qgroundcontrolLibs
${
PHONON_LIBS
}
)
else
()
message
(
STATUS
"
\t\t
PHONON
\t\t
NO"
)
endif
(
PHONON_FOUND
)
endif
()
if
(
SDL_FOUND
)
message
(
STATUS
"
\t\t
SDL
\t\t
YES"
)
list
(
APPEND qgroundcontrolIncludes
${
SDL_INCLUDE_DIR
}
)
list
(
APPEND qgroundcontrolLibs
${
SDL_LIBRARY
}
)
else
()
message
(
STATUS
"
\t\t
SDL
\t\t
NO"
)
endif
(
SDL_FOUND
)
endif
()
if
(
OPENGL_FOUND
)
message
(
STATUS
"
\t\t
OPENGL
\t\t
YES"
)
list
(
APPEND qgroundcontrolIncludes
${
OPENGL_INCLUDE_DIR
}
)
list
(
APPEND qgroundcontrolLibs
${
OPENGL_LIBRARIES
}
)
else
()
message
(
STATUS
"
\t\t
OPENGL
\t\t
NO"
)
endif
(
OPENGL_FOUND
)
endif
(
)
# unix only dependencies
if
(
UNIX
)
...
...
@@ -242,7 +245,7 @@ if (UNIX)
list
(
APPEND qgroundcontrolLibs
${
FLITE_LIBRARIES
}
)
else
()
message
(
STATUS
"
\t\t
FLITE
\t\t
NO"
)
endif
(
FLITE_FOUND
)
endif
()
endif
(
UNIX
)
# set include directories
...
...
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