forked from sirjuddington/SLADE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (30 loc) · 1004 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
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 2.4)
project(Slade3)
if(COMMAND cmake_policy)
cmake_policy( SET CMP0012 NEW )
endif(COMMAND cmake_policy)
if(COMMAND cmake_policy)
cmake_policy( SET CMP0003 NEW )
endif(COMMAND cmake_policy)
if(COMMAND cmake_policy)
cmake_policy( SET CMP0005 NEW )
endif(COMMAND cmake_policy)
if(COMMAND cmake_policy)
cmake_policy( SET CMP0011 NEW )
endif(COMMAND cmake_policy)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
set(SLADE_OUTPUT_DIR ${CMAKE_BINARY_DIR} CACHE PATH "Directory where slade will be created.")
OPTION(NO_WEBVIEW "Disable wxWebview usage (for start page and documentation)" OFF)
OPTION(USE_SFML_RENDERWINDOW "Use SFML RenderWindow for OpenGL displays" OFF)
# c++14 is required to compile
if(CMAKE_VERSION VERSION_LESS 3.1)
add_compile_options(-std=c++14)
else()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
endif()
add_subdirectory(src)
add_subdirectory(dist)