-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (24 loc) · 953 Bytes
/
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
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
project(DisRegRep
LANGUAGES CXX
DESCRIPTION "Discrete Region Representation: An implicit and explicit representation for discrete features and feature combination. Useful for fast procedural modelling of diverse landscape, and more."
HOMEPAGE_URL https://github.com/stephen-hqxu/drr
)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if(MSVC)
add_compile_options(/W4 /arch:AVX2 /MP)
else()
add_compile_options(-Wall -mavx2)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(-Wno-missing-field-initializers)
endif()
set(CMAKE_STATIC_LIBRARY_PREFIX ${PROJECT_NAME}-)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/output/arc)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/output/bin)
set(DRR_EXTERNAL "External")
set(DRR_MAIN "Main")
add_subdirectory(${DRR_EXTERNAL})
add_subdirectory(Source/${PROJECT_NAME})