Files
dx12-starter/CMakeLists.txt
William McVicar bfccfbea99 First pass removing OpenGL stuff and converting to dx12
- Removed OpenGL stuff and replaced/stubbed things with dx12
- Removed .github actions stuff as we are now on gitea and wont be using
  it
2024-04-05 18:29:37 +02:00

31 lines
987 B
CMake

cmake_minimum_required(VERSION 3.23)
project(dx12-starter VERSION 1.0.0)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED true)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
OPTION(ENABLE_TESTS "Enable Unit Tests" OFF)
OPTION(ENABLE_ALL_REASONABLE_WARNINGS "Enable all possible reasonable warnings" ON )
OPTION(ENABLE_WARNINGS_AS_ERRORS "Warnings are treated as Errors" ON)
OPTION(ENABLE_STATIC_ANALYSIS "Enable Static Analysis Tools" OFF)
OPTION(ENABLE_SANITIZERS "Enable Sanitizer Tools" OFF)
set(CMAKE_SCRIPTS_DIR ${CMAKE_CURRENT_LIST_DIR}/cmake)
include(${CMAKE_SCRIPTS_DIR}/compilerwarnings.cmake)
include(${CMAKE_SCRIPTS_DIR}/sanitizers.cmake)
include(${CMAKE_SCRIPTS_DIR}/staticanalysis.cmake)
include(${CMAKE_SCRIPTS_DIR}/cpm.cmake)
if (ENABLE_TESTS)
message("-- Unit Testing Enabled")
enable_testing()
add_subdirectory(test)
endif()
add_subdirectory(src)
add_subdirectory(include)