1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-27 17:45:24 +00:00
OpenDiablo2/CMakeLists.txt
2019-02-20 23:14:27 -05:00

22 lines
545 B
CMake

cmake_minimum_required(VERSION 3.0)
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "Do not build in-source. Please remove CMakeCache.txt and the CMakeFiles/ directory. Then build out-of-source.")
endif()
project(OpenDiablo2 CXX)
include(CTest)
include(CMakeDependentOption)
set(CMAKE_CXX_STANDARD 17)
set(OpenGL_GL_PREFERENCE "GLVND")
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
add_subdirectory(3rdparty)
add_subdirectory(OpenDiablo2.OS)
add_subdirectory(OpenDiablo2.Graphics)
add_subdirectory(OpenDiablo2.Game)