-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathCMakeLists.txt
40 lines (31 loc) · 1.15 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
38
39
40
cmake_minimum_required(VERSION 2.8)
Project(lodToolkit)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# c++ 17
if (MSVC_VERSION GREATER_EQUAL "1900")
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("/std:c++latest" _cpp_latest_flag_supported)
if (_cpp_latest_flag_supported)
add_compile_options("/std:c++latest")
endif()
endif()
find_package(OpenSceneGraph REQUIRED osgDB osgUtil) # libOpenThreads & libosg automatically searched
include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})
include_directories(./thirdparty/CmdParser/include)
include_directories(./thirdparty/LASzip/include)
include_directories(./thirdparty/PlyIO/include)
include_directories(./thirdparty/cJsonObject/include)
include_directories(./thirdparty/openCTM/include)
add_subdirectory(thirdparty)
set(THIRDPARTY_LIBS
LASzip
PlyIO
cJsonObject
openCTM
${OPENSCENEGRAPH_LIBRARIES}
)
include_directories(./src/core/include)
add_subdirectory(src)