Browse Source

build stuff

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
3af2d77f68
2 changed files with 8 additions and 5 deletions
  1. 7
    4
      CMakeLists.txt
  2. 1
    1
      libswan/CMakeLists.txt

+ 7
- 4
CMakeLists.txt View File

@@ -1,10 +1,13 @@
cmake_minimum_required(VERSION 3.0)
project(swan)

set(CMAKE_CXX_CLANG_TIDY
clang-tidy
--header-filter=.*
--checks=-*,bugprone-*,cert-*,performance-*,clang-analyzer-*,-cert-dcl16-c,-cert-err58-cpp,-clang-analyzer-optin.cplusplus.VirtualCall)
option(USE_CLANG_TIDY "Use clang-tidy for additional checks" ON)
if(USE_CLANG_TIDY)
set(CMAKE_CXX_CLANG_TIDY
clang-tidy
--header-filter=.*
--checks=-*,bugprone-*,cert-*,performance-*,clang-analyzer-*,-cert-dcl16-c,-cert-err58-cpp,-clang-analyzer-optin.cplusplus.VirtualCall)
endif()

add_compile_options(-std=c++2a -Wall -Wextra -Wpedantic -Wno-unused-parameter)
if(CMAKE_BUILD_TYPE STREQUAL Sanitize OR CMAKE_BUILD_TYPE STREQUAL "")

+ 1
- 1
libswan/CMakeLists.txt View File

@@ -20,7 +20,7 @@ target_link_libraries(libswan ${libraries})

install(TARGETS libswan DESTINATION swan/libswan)

add_executable(test_libswan
add_executable(test_libswan EXCLUDE_FROM_ALL
test/lib/test.cc
test/Animation.t.cc
test/Body.t.cc

Loading…
Cancel
Save