2020-12-02 18:22:37 -06:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
2020-09-07 14:54:56 -05:00
|
|
|
|
|
|
|
|
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
|
|
|
|
message(FATAL_ERROR
|
|
|
|
|
"In-source builds not allowed.
|
|
|
|
|
Please make a new directory (called a build directory) and run CMake from there.
|
|
|
|
|
You may need to remove CMakeCache.txt."
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
2020-11-23 22:57:50 -06:00
|
|
|
if(TARGET storm)
|
|
|
|
|
# Guard for use as transitive dependency
|
|
|
|
|
return()
|
|
|
|
|
endif()
|
|
|
|
|
|
2020-09-07 14:54:56 -05:00
|
|
|
# Project
|
|
|
|
|
project(storm)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
|
2020-12-02 20:04:02 -06:00
|
|
|
include(lib/system/cmake/system.cmake)
|
2020-09-07 14:54:56 -05:00
|
|
|
|
2023-01-23 22:18:44 -06:00
|
|
|
# OS defines
|
|
|
|
|
if(WHOA_SYSTEM_WIN)
|
|
|
|
|
# Avoid win32 header hell
|
|
|
|
|
add_compile_definitions(
|
|
|
|
|
NOMINMAX
|
|
|
|
|
WIN32_LEAN_AND_MEAN
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
2020-12-02 20:04:02 -06:00
|
|
|
add_subdirectory(lib)
|
2020-09-07 14:54:56 -05:00
|
|
|
add_subdirectory(storm)
|
|
|
|
|
add_subdirectory(test)
|