forked from D7ry/EldenParry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (24 loc) · 816 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
cmake_minimum_required(VERSION 3.22)
project(
EldenParry
VERSION 0.0.1
LANGUAGES CXX
)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
message(FATAL_ERROR "in-source builds are not allowed")
endif()
macro(set_from_environment VARIABLE)
if(NOT DEFINED ${VARIABLE} AND DEFINED ENV{${VARIABLE}})
set(${VARIABLE} $ENV{${VARIABLE}})
endif()
endmacro()
set_from_environment(CompiledPluginsPath)
if(NOT DEFINED CompiledPluginsPath)
message(FATAL_ERROR "CompiledPluginsPath is not set")
endif()
option(COPY_OUTPUT "Copy the output of build operations to the game directory" ON)
option(SKYRIM_SUPPORT_AE "Build for Skyrim AE instead of SSE" OFF)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
add_subdirectory(src)
include(cmake/packaging.cmake)