-
Notifications
You must be signed in to change notification settings - Fork 20
/
CMakeLists.txt
73 lines (60 loc) · 2.53 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 3.14)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(EPS_VERSION_BASE 1.1.0) # This is used as fallback if getting from git fails. Must be only numeric.
# NOTE: also update hard-coded version number in
# - vcpkg.json
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
include(get_git_version)
set(GIT_VERSION_BASE ${EPS_VERSION_BASE})
set(EPS_VERSION_CURRENT ${EPS_VERSION_BASE})
update_version_from_git(GIT_VERSION_BASE EPS_VERSION_CURRENT)
if(${GIT_VERSION_BASE} VERSION_GREATER ${EPS_VERSION_BASE} AND (NOT(EPS_PACKAGING)))
message(WARNING "EPS_VERSION_BASE is lower than most recent git tag. Do you need to update it?")
endif()
set(EPS_VERSION_BASE ${GIT_VERSION_BASE})
project(ear-production-suite VERSION ${EPS_VERSION_BASE} LANGUAGES CXX)
message(STATUS "\n-----------------------------------------------------------------------------------")
message(STATUS " EAR Production Suite Base Version: " ${EPS_VERSION_BASE})
message(STATUS " EAR Production Suite Current Version: " ${EPS_VERSION_CURRENT})
message(STATUS "-----------------------------------------------------------------------------------\n")
include(FeatureSummary)
option(EPS_USE_BAREBONES_PROFILE "Use the bare-bones version of the EBU Production Profile" OFF)
if(EPS_USE_BAREBONES_PROFILE)
add_compile_definitions(BAREBONESPROFILE)
endif()
include(eps_set_install_paths)
eps_set_install_paths()
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
include(CTest)
option(BUILD_TESTING "Build tests" ON)
set(Boost_USE_STATIC_LIBS ON)
include(enable_msvc_static_runtime)
if(UNIX)
find_package(Threads REQUIRED QUIET)
endif()
include(check_nng)
find_package(nng REQUIRED QUIET)
add_subdirectory(submodules)
set(EPS_SHARED_DIR ${CMAKE_CURRENT_SOURCE_DIR}/shared)
set(JUCE_SUPPORT_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/shared/resources)
add_subdirectory(${EPS_SHARED_DIR}/version)
set(EPS_PLUGIN_TARGETS "" CACHE INTERNAL "")
add_subdirectory(ear-production-suite-plugins)
add_subdirectory(reaper-adm-extension)
add_subdirectory(reaper-adm-export-source-plugin)
option(EPS_BUILD_TOOLS "Build EPS project update tool" ON)
if(EPS_BUILD_TOOLS)
add_subdirectory(tools)
endif()
option(EPS_BUILD_PACKAGE "INSTALL supplementary files to form package" OFF)
if(EPS_BUILD_PACKAGE)
add_subdirectory(packaging)
endif()
option(EPS_QUIET "Disable output of configuration summary" OFF)
if(NOT EPS_QUIET)
message(STATUS "\n")
feature_summary(WHAT ALL)
endif()