From: ThorstenB Date: Sun, 18 Dec 2011 11:40:34 +0000 (+0100) Subject: #525 related: add compiler search path for every library X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37453e6b7c4b420929f6224f5845323df17b2fa6;p=flightgear.git #525 related: add compiler search path for every library 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e356fbec..cb1156a2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} ) diff --git a/utils/fgpanel/CMakeLists.txt b/utils/fgpanel/CMakeLists.txt index c90b770d6..d6f4b4351 100644 --- a/utils/fgpanel/CMakeLists.txt +++ b/utils/fgpanel/CMakeLists.txt @@ -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")