-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
40 lines (33 loc) · 1.43 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
# CMakeList.txt : CMake project for FastNoise
cmake_minimum_required(VERSION 3.7.1)
project(NoiseBenchmarking)
set(CMAKE_CXX_STANDARD 17)
#setup build folders
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/)
#for multi-config builds (e.g. msvc)
if(CMAKE_CONFIGURATION_TYPES)
foreach(OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG_UPPER)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG_UPPER} ${PROJECT_BINARY_DIR}/bin/${OUTPUTCONFIG}/)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${OUTPUTCONFIG_UPPER} ${PROJECT_BINARY_DIR}/lib/${OUTPUTCONFIG}/)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${OUTPUTCONFIG_UPPER} ${PROJECT_BINARY_DIR}/lib/${OUTPUTCONFIG}/)
endforeach(OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES)
else()
#make sure there is a build type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
endif()
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
add_subdirectory(benchmark)
add_subdirectory(NoiseBenchmarkInterface)
add_executable(NoiseBenchmarking "main.cpp")
add_subdirectory(FastNoise)
add_subdirectory(FastNoiseLite)
add_subdirectory(FastNoiseSIMD)
add_subdirectory(FastNoise2)
add_subdirectory(libnoise)
add_subdirectory(stb_perlin)
target_link_libraries(NoiseBenchmarking NoiseBenchmarkInterface)