-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
91 lines (72 loc) · 3.19 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Copyright (C) Giuliano Catrambone ([email protected])
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 675 Mass
# Ave, Cambridge, MA 02139, USA.
# Commercial use other than under the terms of the GNU General Public License is
# allowed only after express negotiation of conditions with the authors.
#cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.30.2)
project(CatraMMS)
# generate compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS
ON
CACHE INTERNAL "")
set(CMAKE_CXX_FLAGS "-std=c++20")
# this is to generate a compilation database (for the YCM vim plugin)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_definitions(-D__POSTGRES__)
# next serve per una condizione in MMSEngine/src/CMakeLists.txt
set(__POSTGRES__ "1")
# set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CMAKE_BUILD_TYPE Release)
set(CatraMMS_VERSION_MAJOR 1)
set(CatraMMS_VERSION_MINOR 0)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(LibCrypto)
# $(LibCrypto_INCLUDE_DIRS) and $(LibCrypto_LIBS) availables
find_package(ZLIB)
# $(ZLIB_INCLUDE_DIRS) and $(ZLIB_LIBS) availables
find_package(aws-cpp-sdk-ec2)
# $(aws-cpp-sdk-ec2_INCLUDE_DIRS) and $(aws-cpp-sdk-ec2_LIBS) availables
add_compile_options(-D_FILE_OFFSET_BITS=64)
# Next Magick defines are just to avoid compilation warnings
add_compile_options(-DMAGICKCORE_HDRI_ENABLE=0)
add_compile_options(-DMAGICKCORE_QUANTUM_DEPTH=16)
add_subdirectory(API/src)
add_subdirectory(FastCGIAPI/src)
add_subdirectory(MMSUtility/src)
add_subdirectory(PostgresHelper/src)
add_subdirectory(FFMpeg/src)
add_subdirectory(MMSEngine/src)
add_subdirectory(MMSEngineService/src)
add_subdirectory(conf)
add_subdirectory(ttfFont)
add_subdirectory(docs)
add_subdirectory(docs/howTo)
add_subdirectory(maintenanceEmails)
add_subdirectory(scripts)
add_subdirectory(generateHtmlDoc)
add_subdirectory(jsonSamples)
add_subdirectory(predefinedEncodingProfiles/video)
add_subdirectory(predefinedEncodingProfiles/audio)
add_subdirectory(predefinedEncodingProfiles/image)
add_subdirectory(predefinedWorkflowLibrary)
add_subdirectory(predefinedImages)
add_subdirectory(utilities/awsSigner/src)
# add_subdirectory(utilities/registerAndConfirmUser/src)
add_subdirectory(utilities/updateGEOInfo/src)
# add_subdirectory(utilities/ffmpeg_getLiveStreamingInfo/src)
# add_subdirectory(utilities/confirmUser)
# add_subdirectory(utilities/cvCaptureTest/src)
# add_subdirectory(utilities/lockTest/src)
add_subdirectory(utilities/sendEmail/src)
# add_subdirectory(utilities/addWorkspaceToExistingActiveDirectoryUser/src)
install(FILES version.txt DESTINATION ./)