mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
29 lines
948 B
CMake
29 lines
948 B
CMake
# CMakeList.txt : Top-level CMake project file, do global configuration
|
|
# and include sub-projects here.
|
|
#
|
|
cmake_minimum_required (VERSION 3.8)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
# Enable Hot Reload for MSVC compilers if supported.
|
|
if (POLICY CMP0141)
|
|
cmake_policy(SET CMP0141 NEW)
|
|
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
|
|
endif()
|
|
|
|
# VCPKG source directory
|
|
set(PROJECT_VCPKG_DIRECTORY "C:/vcpkg")
|
|
# Includes directory
|
|
set(PROJECT_INCLUDES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/includes")
|
|
# CMAKE_TOOLCHAIN_FILE
|
|
include("${PROJECT_VCPKG_DIRECTORY}/scripts/buildsystems/vcpkg.cmake")
|
|
|
|
project ("xna")
|
|
|
|
# Include sub-projects.
|
|
include_directories(${PROJECT_INCLUDES_DIR})
|
|
add_subdirectory ("sources")
|
|
add_subdirectory ("samples")
|
|
|
|
#ver depois
|
|
#add_compile_definitions
|
|
#target_compile_definitions |