]> git.mxchange.org Git - flightgear.git/commitdiff
#525 related: add compiler search path for every library
authorThorstenB <brehmt@gmail.com>
Sun, 18 Dec 2011 11:40:34 +0000 (12:40 +0100)
committerThorstenB <brehmt@gmail.com>
Sun, 18 Dec 2011 11:40:34 +0000 (12:40 +0100)
Consider search path for every single library as reported/found by CMake.
Most includes sit in the same directory (so the same directory is reported
for almost all libraries), however this may not be the case for every
system or library.

CMakeLists.txt
utils/fgpanel/CMakeLists.txt

index 6e356fbec116f54832b95af29f201c09c46bbee3..cb1156a2df9da951caa0cc9eb6e4b3d8a013ba2d 100644 (file)
@@ -283,6 +283,7 @@ include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS}
        ${Boost_INCLUDE_DIRS}
        ${ZLIB_INCLUDE_DIR}
        ${ALUT_INCLUDE_DIR}
+       ${OPENGL_INCLUDE_DIR}
        ${OPENAL_INCLUDE_DIR}
        ${SIMGEAR_INCLUDE_DIR}
        ${PLIB_INCLUDE_DIR} )
index c90b770d620055281d881690634c3ca2e465373a..d6f4b43518fc096139612553f5cc390bca8f723b 100644 (file)
@@ -34,6 +34,8 @@ if(GLUT_FOUND)
                ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
        )
 
+       include_directories(${PNG_INCLUDE_DIR})
+
        install(TARGETS fgpanel RUNTIME DESTINATION bin)
 else()
        message(STATUS "glut NOT found, can't build fgpanel")