forked from OpenVisualCloud/Smart-City-Sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (34 loc) · 1.56 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
cmake_minimum_required (VERSION 2.8)
Project(smart_city NONE)
add_custom_target(dist ${CMAKE_HOME_DIRECTORY}/script/mk-dist.sh)
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "${CMAKE_HOME_DIRECTORY}/dist")
add_custom_target(update ${CMAKE_HOME_DIRECTORY}/script/update-image.sh)
add_custom_target(discover ${CMAKE_HOME_DIRECTORY}/sensor/discovery/shell.sh /home/discover.py $ENV{PORT_SCAN})
if (NOT DEFINED PLATFORM)
set(PLATFORM "Xeon")
endif()
if (NOT DEFINED FRAMEWORK)
set(FRAMEWORK "gst")
endif()
if (NOT DEFINED SCENARIO)
set(SCENARIO "traffic")
endif()
if (NOT DEFINED NOFFICES)
set(NOFFICES "1")
endif()
if (NOT DEFINED NCAMERAS)
set(NCAMERAS "5")
endif()
if (NOT DEFINED NANALYTICS)
set(NANALYTICS "1")
endif()
file(GLOB dirs "deployment" "*")
list(REMOVE_DUPLICATES dirs)
foreach (dir ${dirs})
if(EXISTS ${dir}/CMakeLists.txt)
add_subdirectory(${dir})
endif()
endforeach()
# legal message
execute_process(COMMAND printf "\n\nThis script will build third party components licensed under various open source licenses into your container images. The terms under which those components may be used and distributed can be found with the license document that is provided with those components. Please familiarize yourself with those terms to ensure your distribution of those components complies with the terms of those licenses.\n\n")
execute_process(COMMAND printf "\n-- Setting: PLATFORM=${PLATFORM}, SCENARIO=${SCENARIO}, NOFFICES=${NOFFICES}, NCAMERAS=${NCAMERAS}, NANALYTICS=${NANALYTICS}, FRAMEWORK=${FRAMEWORK}\n")