source: Revenant/CMakeLists.txt@ 88089e4

port/mars-tycoon
Last change on this file since 88089e4 was 7ef8ec4, checked in by Jonathan Neufeld <support@…>, 3 years ago

Introduce Catch2 unit testing framework and skip "RPath" in dynamic linking, this causes the runtime-linker to resolve dynamic library dependencies normally and correctly.

  • Property mode set to 100644
File size: 805 bytes
Line 
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)
7set(CMAKE_SKIP_BUILD_RPATH ON)
8
9if(MSVC)
10 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWINDOZE=1 /W4")
11endif()
12
13find_package(Catch2 3 REQUIRED)
14
15set(Boost_USE_STATIC_LIBS OFF)
16set(Boost_USE_MULTITHREADED ON)
17set(Boost_USE_STATIC_RUNTIME OFF)
18find_package(Boost 1.45.0 COMPONENTS thread date_time regex filesystem)
19
20if(Boost_FOUND)
21 include_directories(${Boost_INCLUDE_DIRS})
22endif()
23
24include_directories(marslib/include/)
25add_definitions(-DBOOST_ALL_NO_LIB)
26add_definitions(-DBOOST_ALL_DYN_LINK)
27
28add_subdirectory(third-party)
29add_subdirectory(marslib)
30add_subdirectory(geoworld)
31add_subdirectory(terrain-generator)
32add_subdirectory(yamlprovider)
Note: See TracBrowser for help on using the repository browser.