forked from ezEngine/ezEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (23 loc) · 1.09 KB
/
CMakeLists.txt
File metadata and controls
32 lines (23 loc) · 1.09 KB
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
#cmake
cmake_minimum_required(VERSION 3.5)
# Going to bump this to 3.13 soon, due to new features in target_sources in that version
# cmake_minimum_required(VERSION 3.13)
set(EZ_CMAKE_UTILS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/Code/BuildSystem/CMake" CACHE INTERNAL "The path where ez stores CMake utility functions.")
set (EZ_SOLUTION_NAME "ezEngine" CACHE STRING "The name of the solution")
project (${EZ_SOLUTION_NAME}
VERSION 1.0
DESCRIPTION "An open-source game engine"
HOMEPAGE_URL "http://ezEngine.net"
LANGUAGES C CXX)
#Clear Targets.txt and Tests.txt
file(WRITE ${CMAKE_BINARY_DIR}/Targets.txt "")
file(WRITE ${CMAKE_BINARY_DIR}/Tests.txt "")
#Clear cached qt dirs
set (Qt5Core_DIR "" CACHE PATH "" FORCE)
set (Qt5Gui_DIR "" CACHE PATH "" FORCE)
set (Qt5Widgets_DIR "" CACHE PATH "" FORCE)
set (Qt5Network_DIR "" CACHE PATH "" FORCE)
set (Qt5WinExtras_DIR "" CACHE PATH "" FORCE)
add_subdirectory (Code)
# sets the Editor project as the default startup project in Visual Studio
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" PROPERTY VS_STARTUP_PROJECT Editor)