2019-05-23 23:04:29 +00:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
2019-05-26 06:24:13 +00:00
|
|
|
set(MACOSX_DEPLOYMENT_TARGET 10.10)
|
2019-05-23 23:04:29 +00:00
|
|
|
|
|
|
|
project(PrimeWorldEditor CXX)
|
|
|
|
|
|
|
|
include(./dew.cmake)
|
|
|
|
integrate_dew()
|
|
|
|
|
2019-05-26 06:24:13 +00:00
|
|
|
include(cmake/generate_product_version.cmake)
|
|
|
|
|
2019-05-27 01:49:50 +00:00
|
|
|
if(MSVC)
|
|
|
|
add_compile_options(/WX /wd4267 /wd4100 /wd4101 /wd4189)
|
2019-05-27 21:25:00 +00:00
|
|
|
elseif(APPLE)
|
|
|
|
add_compile_definitions(GL_SILENCE_DEPRECATION)
|
2019-05-27 01:49:50 +00:00
|
|
|
endif()
|
|
|
|
|
2019-05-23 23:04:29 +00:00
|
|
|
# Set where the binary files will be built. The program will not execute from
|
|
|
|
# here. You must run "make install" to install these to the proper location
|
|
|
|
# as defined above.
|
2019-05-26 06:24:13 +00:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
2019-05-23 23:04:29 +00:00
|
|
|
|
|
|
|
add_subdirectory(src/Core)
|
|
|
|
add_subdirectory(src/Editor)
|