-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
36 lines (26 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
31
32
33
34
35
36
# CMakeLists.txt
#
# author: Erik Winkels (aerique@xs4all.nl)
#
# See the LICENSE file in the Okra root directory for more info.
cmake_minimum_required(VERSION 2.6)
project(libokra)
option(BUILD_SHARED_LIBS "build shared libraries" ON)
option(BUILD_MYGUI "build libmygui" ON)
add_definitions(-g -O0 -Wall)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake-modules")
find_package(OGRE REQUIRED)
include_directories(${OGRE_INCLUDE_DIR})
if (BUILD_MYGUI)
find_package(MYGUI REQUIRED)
if (MYGUI_FOUND)
include_directories(${MYGUI_INCLUDE_DIR})
endif ()
endif ()
# Set some directories / variables.
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/lib)
add_subdirectory(${CMAKE_SOURCE_DIR}/libokra/build)
if (BUILD_MYGUI AND MYGUI_FOUND)
add_subdirectory(${CMAKE_SOURCE_DIR}/libmygui_okra/build)
endif ()