source: Revenant/CMakeLists.txt@ dd8f5b4

Last change on this file since dd8f5b4 was dd8f5b4, checked in by Jonathan Neufeld <support@…>, 4 years ago

(WIP) GD Native module

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[71dea59]1cmake_minimum_required(VERSION 3.5)
2project (revenant)
3
4set(CMAKE_CXX_STANDARD 11)
5set(CMAKE_CXX_STANDARD_REQUIRED ON)
6set(CMAKE_CXX_EXTENSIONS OFF)
[dd8f5b4]7set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/targets)
8set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/targets)
[71dea59]9
10if(MSVC)
11 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWINDOZE=1 /W4")
12endif()
13
14set(Boost_USE_STATIC_LIBS OFF)
15set(Boost_USE_MULTITHREADED ON)
16set(Boost_USE_STATIC_RUNTIME OFF)
17find_package(Boost 1.45.0 COMPONENTS thread date_time regex filesystem)
18
19if(Boost_FOUND)
20 include_directories(${Boost_INCLUDE_DIRS})
21endif()
22
23include_directories(marslib/include/)
24add_definitions(-DBOOST_ALL_NO_LIB)
25add_definitions(-DBOOST_ALL_DYN_LINK)
26
27add_subdirectory(third-party)
28add_subdirectory(marslib)
29add_subdirectory(geoworld)
30add_subdirectory(terrain-generator)
31add_subdirectory(yamlprovider)
32add_subdirectory(gdmodule)
[dd8f5b4]33
34add_dependencies(geoworld marslib)
35add_dependencies(gdmodule yamlprovider geoworld)
36add_dependencies(terrain-generator geoworld yamlprovider)
Note: See TracBrowser for help on using the repository browser.