summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt59
1 files changed, 2 insertions, 57 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19d3679..3a2b650 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,65 +3,10 @@ cmake_minimum_required(VERSION 3.21)
project(
bowshock
- VERSION 0.10.0
+ VERSION 0.11.0
HOMEPAGE_URL "https://mandelbrot.dk/bowshock"
- LANGUAGES C
+ LANGUAGES C CXX
)
-function(target_enable_warnings TARGET)
- if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang|GNU")
- target_compile_options(
- ${TARGET} PRIVATE
-
- -Wall
- -Wextra
- )
- elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
- target_compile_options(
- ${TARGET} PRIVATE
-
- /W4
- )
- endif()
-endfunction()
-
-function(target_enable_optimisations TARGET)
- if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang|GNU")
- if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
- target_compile_options(
- ${TARGET} PRIVATE
-
- -Og
- )
- else()
- target_compile_options(
- ${TARGET} PRIVATE
-
- -Ofast
- )
- endif()
- elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
- target_compile_options(
- ${TARGET} PRIVATE
-
- /O2
- )
-
- if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
- target_compile_options(
- ${TARGET} PRIVATE
-
- /Zo
- )
- endif()
- endif()
-endfunction()
-
-if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang|GNU")
- add_compile_options(
- -fdiagnostics-color=always
- )
-endif()
-
add_subdirectory(bowshock)
add_subdirectory(glad)