2021-09-14 21:02:23 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8.8)
|
|
|
|
|
|
|
|
project(classicmode)
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
2021-09-28 05:48:06 +02:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/include)
|
2021-09-14 21:02:23 +02:00
|
|
|
|
2021-09-28 05:48:06 +02:00
|
|
|
file(GLOB_RECURSE HEADERS "shared/*.h" )
|
2021-09-14 21:02:23 +02:00
|
|
|
file(GLOB_RECURSE SOURCES "editor/*.h" "editor/*.cpp" "game/*.h" "game/*.cpp" "./classicfactory.cpp")
|
|
|
|
|
|
|
|
add_library(classicmode STATIC ${SOURCES} ${HEADERS})
|
|
|
|
target_include_directories(classicmode PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
2021-09-28 05:48:06 +02:00
|
|
|
target_include_directories(classicmode PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/game)
|
2021-09-14 21:02:23 +02:00
|
|
|
target_include_directories(classicmode PRIVATE ${CMAKE_SOURCE_DIR}/tools/shared)
|
|
|
|
target_include_directories(classicmode PRIVATE ${CMAKE_SOURCE_DIR}/core/shared)
|
|
|
|
target_link_libraries(classicmode tools core)
|
2021-09-28 05:48:06 +02:00
|
|
|
|
|
|
|
target_include_directories(project-kyoku PRIVATE ${CMAKE_SOURCE_DIR}/modes/classicmode/shared)
|
|
|
|
|