-
Notifications
You must be signed in to change notification settings - Fork 23
/
CMakeLists.txt
142 lines (126 loc) · 4.76 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
cmake_minimum_required(VERSION 3.18.4)
project(NAP)
# Keep the current directory as project root
set(NAP_ROOT ${CMAKE_CURRENT_LIST_DIR})
message(STATUS "Using NAP Root: ${CMAKE_CURRENT_LIST_DIR}")
# Inform system we're building from source
set(NAP_BUILD_CONTEXT "source")
# Thirdparty libraries reside in this location, keep an absolute path
set(THIRDPARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
message(STATUS "Using thirdparty directory: ${THIRDPARTY_DIR}")
# Include utilities
include(cmake/macros_and_functions.cmake)
include(cmake/framework_release_packaging.cmake)
include(cmake/qtconfig.cmake)
# Initialize environment
bootstrap_environment()
set_source_build_configuration()
set(MODULE_INTO_PARENT TRUE)
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/packaging_staging)
# store project directory
get_filename_component(PROJECTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/.. ABSOLUTE)
# library targets
add_subdirectory(core)
add_subdirectory(utility)
add_subdirectory(rtti)
add_subdirectory(qt)
# tools targets
add_subdirectory(tools/fbxconverter)
add_subdirectory(tools/napkin)
add_subdirectory(tools/keygen)
add_subdirectory(tools/licensegenerator)
# START_SOURCE_ARCHIVE_REMOVED_SECTION (don't remove)
# app targets, add your own app targets here!
add_subdirectory(apps/example)
# END_SOURCE_ARCHIVE_REMOVED_SECTION (don't remove)
# demo targets
add_subdirectory(demos/helloworld)
add_subdirectory(demos/rotatingtexcube)
add_subdirectory(demos/vinyl)
add_subdirectory(demos/multiwindow)
if(RPI_MODEL)
message(STATUS "Skipping target: heightmap, not supported on Raspberry Pi")
else()
add_subdirectory(demos/heightmap)
endif()
add_subdirectory(demos/dynamicgeo)
add_subdirectory(demos/computeparticles)
if(RPI_MODEL)
message(STATUS "Skipping target: computeflocking, not supported on Raspberry Pi")
else()
add_subdirectory(demos/computeflocking)
endif()
add_subdirectory(demos/videomodulation)
add_subdirectory(demos/blobtrace)
add_subdirectory(demos/audioanalysis)
add_subdirectory(demos/audioplayback)
add_subdirectory(demos/oscmidi)
add_subdirectory(demos/curveball)
add_subdirectory(demos/copystamp)
add_subdirectory(demos/websocketserver)
add_subdirectory(demos/sequencer)
add_subdirectory(demos/paintobject)
add_subdirectory(demos/licensecheck)
add_subdirectory(demos/artnetsend)
add_subdirectory(demos/artnetreceive)
add_subdirectory(demos/webportal)
add_subdirectory(demos/python)
add_subdirectory(demos/lightsandshadow)
add_subdirectory(demos/skybox)
add_subdirectory(demos/udpsend)
add_subdirectory(demos/udpreceive)
add_subdirectory(demos/linemorphing)
add_subdirectory(demos/spotlight)
if(APPLE)
set(GENERATE_XCODE_PROJECT_TARGET generateXcodeProject)
add_custom_target(generateXcodeProject ${CMAKE_COMMAND} -H. -B. -G Xcode -DCMAKE_BUILD_TYPE=Debug ../)
endif()
#add_dependencies(${PROJECT_NAME} ${GENERATE_XCODE_PROJECT_TARGET})
# Modules
add_subdirectory(system_modules/napinput)
add_subdirectory(system_modules/naprender)
add_subdirectory(system_modules/napmath)
add_subdirectory(system_modules/napsdlinput)
add_subdirectory(system_modules/napscene)
add_subdirectory(system_modules/napcameracontrol)
add_subdirectory(system_modules/nappython)
add_subdirectory(system_modules/napvideo)
add_subdirectory(system_modules/napaudio)
add_subdirectory(system_modules/napportaudio)
add_subdirectory(system_modules/napartnet)
add_subdirectory(system_modules/naposc)
add_subdirectory(system_modules/napsvg)
add_subdirectory(system_modules/napapp)
add_subdirectory(system_modules/napimgui)
add_subdirectory(system_modules/napmidi)
add_subdirectory(system_modules/napfont)
add_subdirectory(system_modules/napapi)
add_subdirectory(system_modules/napparameter)
add_subdirectory(system_modules/napparametergui)
add_subdirectory(system_modules/napserial)
add_subdirectory(system_modules/napwebsocket)
add_subdirectory(system_modules/napapiwebsocket)
add_subdirectory(system_modules/napcolor)
add_subdirectory(system_modules/napsequence)
add_subdirectory(system_modules/napsequencegui)
add_subdirectory(system_modules/napsequenceaudio)
add_subdirectory(system_modules/napsequenceaudiogui)
add_subdirectory(system_modules/naplicense)
add_subdirectory(system_modules/napudp)
add_subdirectory(system_modules/napcalendar)
add_subdirectory(system_modules/napasio)
add_subdirectory(system_modules/napportal)
add_subdirectory(system_modules/napopenssl)
add_subdirectory(system_modules/naprenderadvanced)
solution_info_to_cmake()
# Add additional directories if specified from command line.
# For example: -DADDITIONAL_SUB_DIRECTORIES="apps/myapp;apps/myapp/module"
if(ADDITIONAL_SUB_DIRECTORIES)
foreach(SUB_DIR ${ADDITIONAL_SUB_DIRECTORIES})
message(STATUS "Adding sub directory: ${SUB_DIR}")
add_subdirectory(${SUB_DIR})
endforeach()
endif()
# Packaging
include(cmake/framework_release_packaging.cmake)
package_nap()