-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
53 lines (42 loc) · 1.54 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
46
47
48
49
50
51
52
53
##===----------------------------------------------------------------------===//
##
## Libarch
##
## This document is the property of "Is This On?" It is considered to be
## confidential and proprietary and may not be, in any form, reproduced or
## transmitted, in whole or in part, without express permission of Is This
## On?.
##
## Copyright (C) 2022, Harry Moulton - Is This On? Holdings Ltd
##
## Harry Moulton <[email protected]>
##
##===----------------------------------------------------------------------===//
cmake_minimum_required(VERSION 3.15)
############################ CONFIGURATION #####################################
# Include a file from config/defaults.cmake which has default values.
# The default build type should be DEBUG. The build type can be set with
# -DCMAKE_BUILD_TYPE.
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "DEBUG" CACHE STRING "Build type: RELEASE, DEBUG" FORCE)
endif()
############################## PROJECT #########################################
# Declare the project
project("Libarch" VERSION ${LIBARCH_VERSION} LANGUAGES C)
add_library(libarch SHARED)
set_property(TARGET libarch PROPERTY C_STANDARD 11)
# Public headers
target_include_directories(libarch
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
# Setup versioning script
if (USE_VERSION_GENERATOR)
include (config/version.cmake)
add_dependencies (libarch generate_version)
endif()
# Add Sources
add_subdirectory(src/)
# Add other directories
add_subdirectory(tools)
#add_subdirectory(tests)