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