2021-01-11 19:27:26 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2021-01-10 12:23:11 +00:00
|
|
|
project(eco2d)
|
2021-01-19 09:44:43 +00:00
|
|
|
include(cmake/utils.cmake)
|
2021-01-10 12:23:11 +00:00
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
2021-01-23 18:24:52 +00:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR})
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR})
|
2021-01-10 12:23:11 +00:00
|
|
|
|
2021-05-03 19:53:28 +00:00
|
|
|
if(MSVC)
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
2021-05-12 15:50:30 +00:00
|
|
|
add_compile_options(/MP /W4 /nologo)
|
2021-05-03 19:53:28 +00:00
|
|
|
endif()
|
|
|
|
|
2021-01-19 09:57:08 +00:00
|
|
|
include_directories(code/common code/vendors code/vendors/flecs)
|
2021-01-10 12:42:56 +00:00
|
|
|
|
2021-05-12 15:50:30 +00:00
|
|
|
include(cmake/FindRaylib.cmake)
|
|
|
|
|
2021-05-04 17:39:50 +00:00
|
|
|
add_subdirectory(code/modules)
|
2021-01-19 09:44:43 +00:00
|
|
|
add_subdirectory(code/vendors)
|
|
|
|
|
2021-05-10 08:43:05 +00:00
|
|
|
add_subdirectory(code/game)
|