-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (36 loc) · 1.64 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright (c) 2021, Kai Wolf - SW Consulting. All rights reserved.
# For the licensing terms see LICENSE file in the root directory. For the
# list of contributors see the AUTHORS file in the same directory.
cmake_minimum_required(VERSION 3.19..3.21 FATAL_ERROR)
project(KWCToolkit VERSION 0.0.1
DESCRIPTION "Small utility library for cross-platform development"
HOMEPAGE_URL "https://github.com/Kai-Wolf-SW-Consulting/KWCToolkit"
LANGUAGES C CXX)
set(APPLICATION_NAME "KWCToolkit")
set(APPLICATION_CODENAME "${PROJECT_NAME}")
set(APPLICATION_COPYRIGHT "Copyright (c) 2021 Kai Wolf - SW Consulting")
set(APPLICATION_VENDOR_ID "me.kai-wolf")
set(APPLICATION_VENDOR_NAME "Kai Wolf - SW Consulting")
set(APPLICATION_VENDOR_EMAIL "mail@kai-wolf.me")
set(APPLICATION_VENDOR_URL "${PROJECT_HOMEPAGE_URL}")
set(APPLICATION_ID "${APPLICATION_VENDOR_ID}.${PROJECT_NAME}")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(BuildOption)
option(ENABLE_CPPCHECK "Enable static analysis with cppcheck" OFF)
option(ENABLE_CLANG_TIDY "Enable static analysis with clang-tidy" OFF)
option(ENABLE_INCLUDE_WHAT_YOU_USE "Enable static analysis with include-what-you-use" OFF)
build_option(ENABLE_ASSERTS "Enable asserts in codebase (Debug mode)" OFF)
## Setup project defaults
include(CompilerFlags)
include(BuildType)
include(InstallLocation)
include(StaticAnalyzer)
include(Utils)
## Automatically creates a BUILD_TESTING option (default ON)
include(CTest)
add_subdirectory(third_party)
if(BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif()
add_subdirectory(kwctoolkit)