From ef871c813bbb95c6776d971df301c45f85d62c2b Mon Sep 17 00:00:00 2001 From: Nicolay Korslund Date: Mon, 1 Mar 2010 14:39:38 +0100 Subject: [PATCH] CMake patch from Andrew Belitsky: Improved Linux handling. --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6fc1e4fd..c86d3dac8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,9 +9,10 @@ set(MANGLE_VFS mangle/vfs/servers/ogre_vfs.cpp) set(GAME game/main.cpp) # Dependencies -# Not exactly platform independent, FIXME! -add_definitions(-I/usr/local/include/OGRE) +find_package(PkgConfig REQUIRED) +pkg_check_modules(OGRE REQUIRED OGRE) +include_directories(${OGRE_INCLUDE_DIRS}) # Main executable add_executable(openmw ${BSA} ${TOOLS} ${GAME}) -target_link_libraries(openmw OgreMain) +target_link_libraries(openmw ${OGRE_LIBRARIES})