Add cmake install commands

This commit is contained in:
2025-11-10 22:58:37 +10:00
parent 7c1612be63
commit caf8bd6b05
4 changed files with 64 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ endif()
set(NOVA_SANITIZERS "" CACHE STRING "Sanitizers to enable (address, undefined, leak)")
set(NOVA_WERROR OFF CACHE BOOL "Treat compiler warnings as errors")
set(NOVA_ENABLE_INSTALL ON CACHE BOOL "Enable installation targets")
add_compile_definitions(
NOVA_VERSION_MAJOR=${PROJECT_VERSION_MAJOR}
@@ -87,5 +88,10 @@ else()
message(FATAL_ERROR "Unsupported platform")
endif()
if (NOVA_ENABLE_INSTALL)
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
endif()
add_subdirectory(engine)
add_subdirectory(editor)