-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (31 loc) · 980 Bytes
/
CMakeLists.txt
File metadata and controls
45 lines (31 loc) · 980 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 4.0.3)
project(
CppTemplate
VERSION 0.1.0
DESCRIPTION "C++ template"
HOMEPAGE_URL https://github.com/Adrien4193/CppTemplate
LANGUAGES CXX
)
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
option(BUILD_APPLICATIONS "Build application" ON)
option(BUILD_TESTS "Build tests" ON)
list(PREPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake)
include(CompileOptions)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_VERIFY_INTERFACE_HEADER_SETS ON)
include(GNUInstallDirs)
set(PROJECT_INSTALL_CONFIGDIR cmake)
include(PackageOptions)
include(Application)
include(Library)
add_subdirectory(Source/${PROJECT_NAME})
if(BUILD_APPLICATIONS)
add_subdirectory(Applications)
endif()
if(BUILD_TESTS)
include(CTest)
add_subdirectory(Tests)
endif()
include(Package)