-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (22 loc) · 871 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 2.6)
if(UNIX)
if(EXISTS "/usr/local/lib/OGRE/cmake")
set(CMAKE_MODULE_PATH "/usr/local/lib/OGRE/cmake;${CMAKE_MODULE_PATH}")
elseif(EXISTS "/usr/lib/OGRE/cmake")
set(CMAKE_MODULE_PATH "/usr/lib/OGRE/cmake;${CMAKE_MODULE_PATH}")
elseif(EXISTS "/usr/share/OGRE/cmake")
set(CMAKE_MODULE_PATH "/usr/share/OGRE/cmake/modules;${CMAKE_MODULE_PATH}")
else()
message(SEND_ERROR "Failed to find module path.")
endif()
endif()
find_package(OGRE REQUIRED)
find_package(OIS REQUIRED)
if(NOT OIS_FOUND)
message(SEND_ERROR "OIS is needed")
endif()
file(GLOB_RECURSE src src/*.cpp)
file(GLOB_RECURSE hdr src/*.h)
add_executable(roam ${src} ${hdr})
include_directories(${OIS_INCLUDE_DIRS} ${OGRE_INCLUDE_DIRS})
target_link_libraries(roam ${OGRE_LIBRARIES} ${OIS_LIBRARIES} boost_system noise)