-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
37 lines (30 loc) · 1.06 KB
/
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
37
cmake_minimum_required(VERSION 3.12)
project(CGT VERSION 2.4)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${PROJECT_SOURCE_DIR}/cmake")
set(CMAKE_DEBUG_POSTFIX d)
include_directories("include")
if(MSVC)
add_definitions(-DNOMINMAX)
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/binary/windows")
set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/binary/windows")
else()
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/binary/linux")
set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/binary/linux")
endif()
if(CMAKE_BUILD_TYPE MATCHES Debug)
set(EXECUTABLE_OUTPUT_PATH "${EXECUTABLE_OUTPUT_PATH}/debug")
set(LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH}/debug")
else()
set(EXECUTABLE_OUTPUT_PATH "${EXECUTABLE_OUTPUT_PATH}/release")
set(LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH}/release")
endif()
find_package(OpenSceneGraph
REQUIRED COMPONENTS
osgDB
osgAnimation
osgUtil)
include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})
find_package(GDAL REQUIRED)
include_directories(${GDAL_INCLUDE_DIRS})
add_subdirectory(cgt)