-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (29 loc) · 910 Bytes
/
CMakeLists.txt
File metadata and controls
36 lines (29 loc) · 910 Bytes
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
cmake_minimum_required(VERSION 2.8)
project(LUNASDKExamples)
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
"${CMAKE_SOURCE_DIR}/cmake/"
)
SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib:$ORIGIN/")
# Use solution folders in MSVS.
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
else ()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif ()
option(WITH_FREEIMAGE_EXAMPLE "Built example with freeimage library." ON)
option(WITH_QT_EXAMPLE "Built example with qt library." OFF)
add_subdirectory(example1)
add_subdirectory(example2)
add_subdirectory(example3)
if (WITH_FREEIMAGE_EXAMPLE)
add_subdirectory(example4)
endif ()
if (WITH_QT_EXAMPLE)
add_subdirectory(example5)
endif ()
add_subdirectory(example6)
add_subdirectory(example7)
add_subdirectory(example8)