14 lines
526 B
CMake
14 lines
526 B
CMake
project(KKK)
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
|
|
|
|
function(setup_target NAME)
|
|
set_property(TARGET ${NAME} PROPERTY CXX_STANDARD 14)
|
|
set_property(TARGET ${NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
|
|
target_compile_options(${NAME} PRIVATE -Wall -Wextra)
|
|
target_compile_options(${NAME} PRIVATE $<$<CONFIG:DEBUG>:-ggdb -O2>)
|
|
target_compile_options(${NAME} PRIVATE $<$<CONFIG:RELEASE>:-O3 -NDEBUG>)
|
|
endfunction(setup_target)
|
|
|
|
add_subdirectory(game)
|