-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (20 loc) · 804 Bytes
/
CMakeLists.txt
File metadata and controls
29 lines (20 loc) · 804 Bytes
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
cmake_minimum_required(VERSION 3.16..3.24)
project(SimpleLogger VERSION 0.0.1
DESCRIPTION "SimpleLogger library"
LANGUAGES CXX)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "" FORCE)
endif()
message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
add_library(cxx_setup INTERFACE)
target_compile_options(cxx_setup INTERFACE -Wall -Wpedantic -Wextra)
target_compile_features(cxx_setup INTERFACE cxx_std_17)
target_include_directories(cxx_setup INTERFACE ${PROJECT_SOURCE_DIR})
# Update the submodules here
include(external/UpdateSubmodules.cmake)
# Enable testing for this project
include(CTest)
# Add subdirectory with external projects' code
add_subdirectory(external)
add_subdirectory(src)
add_subdirectory(example)