-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
29 lines (25 loc) · 881 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
# This file is part of the "ST" project.
# You may use, distribute or modify this code under the terms
# of the GNU General Public License version 2.
# See LICENCE.txt in the root directory of the project.
#
# Author: Maxim Atanasov
# E-mail: [email protected]
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
project(ST)
add_compile_definitions(VMEM_OVERRIDE_NEW_DELETE)
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
set(CMAKE_CXX_FLAGS_RELEASE "/Ox /MD")
set(CMAKE_CXX_FLAGS_DEBUG "/MDd")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:CONSOLE /STACK:3000000")
endif()
if(UNIX AND NOT APPLE)
set(CMAKE_EXECUTABLE_SUFFIX ".out")
endif()
add_subdirectory(ST_loaders)
add_subdirectory(ST_engine)
add_subdirectory(ST_asset_pack)
add_subdirectory(ST_util)
add_subdirectory(external/googletest)
add_subdirectory(external/lua)