Skip to content

Commit

Permalink
Add cmake options
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Jun 11, 2022
1 parent b9f3507 commit 5901f7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/analyze_clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: CMake configure -- Release
run: |
cmake -S . -G "Unix Makefiles" -B build -DCMAKE_BUILD_TYPE=Release -DTA_ENABLE_WERROR=ON -DCMAKE_C_COMPILER="clang-14" -DCMAKE_CXX_COMPILER="clang++-14"
cmake --build build --target RaumAkustik_BinaryData
cmake --build build --target StiggiDJ
- name: Clang-Tidy -- Release
run: BUILD_DIR=build make tidy-check
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
cmake_minimum_required(VERSION 3.15)
project(app-stiggi-dj VERSION 0.1.0)

option(TA_ENABLE_COVERAGE "Build with coverage enabled" OFF)
option(TA_ENABLE_ASAN "Build with address sanitizer enabled" OFF)
option(TA_ENABLE_UBSAN "Build with undefined behavior sanitizer enabled" OFF)
option(TA_ENABLE_TSAN "Build with thread sanitizer enabled" OFF)
option(TA_ENABLE_MSAN "Build with memory sanitizer enabled" OFF)
option(TA_ENABLE_WERROR "Build with warnings as errors" OFF)

# Only do these if this is the main project,
# and not if it is included through add_subdirectory.
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
Expand Down

0 comments on commit 5901f7f

Please sign in to comment.