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
e32dc6e0
Commit
e32dc6e0
authored
Feb 26, 2011
by
James Goppert
Browse files
Working on cmake osg bug.
parent
10163483
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
_LIBRAR
Y
}
)
list
(
APPEND qgroundcontrolLibs
${
OPENSCENEGRAPH
_LIBRAR
IES
}
)
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
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