-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathCMakeLists.txt
55 lines (48 loc) · 2.63 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
# ###########################################################################
# AREG SDK Examples with example specific functions
# Copyright 2022-2023 Aregtech
# ###########################################################################
# ###########################################################################
# List of examples to build
# ###########################################################################
if(AREG_BUILD_EXAMPLES)
# Examples with specific design must be included one by one.
include(${AREG_EXAMPLES}/00_helloservice/CMakeLists.txt)
include(${AREG_EXAMPLES}/01_hello/CMakeLists.txt)
include(${AREG_EXAMPLES}/02_buffer/CMakeLists.txt)
include(${AREG_EXAMPLES}/03_file/CMakeLists.txt)
include(${AREG_EXAMPLES}/04_logging/CMakeLists.txt)
include(${AREG_EXAMPLES}/05_timer/CMakeLists.txt)
include(${AREG_EXAMPLES}/06_threads/CMakeLists.txt)
include(${AREG_EXAMPLES}/07_synch/CMakeLists.txt)
include(${AREG_EXAMPLES}/08_service/CMakeLists.txt)
include(${AREG_EXAMPLES}/09_svcmulti/CMakeLists.txt)
include(${AREG_EXAMPLES}/10_locsvc/CMakeLists.txt)
include(${AREG_EXAMPLES}/11_locmesh/CMakeLists.txt)
include(${AREG_EXAMPLES}/12_pubsvc/CMakeLists.txt)
include(${AREG_EXAMPLES}/13_pubmesh/CMakeLists.txt)
include(${AREG_EXAMPLES}/14_pubtraffic/CMakeLists.txt)
include(${AREG_EXAMPLES}/15_pubworker/CMakeLists.txt)
include(${AREG_EXAMPLES}/16_pubfsm/CMakeLists.txt)
include(${AREG_EXAMPLES}/18_locwatchdog/CMakeLists.txt)
include(${AREG_EXAMPLES}/19_pubwatchdog/CMakeLists.txt)
include(${AREG_EXAMPLES}/20_pubdatarate/CMakeLists.txt)
include(${AREG_EXAMPLES}/21_pubunblock/CMakeLists.txt)
include(${AREG_EXAMPLES}/22_pubsub/CMakeLists.txt)
include(${AREG_EXAMPLES}/23_pubsubmix/CMakeLists.txt)
include(${AREG_EXAMPLES}/24_pubsubmulti/CMakeLists.txt)
if (AREG_DEVELOP_ENV MATCHES "Win32")
# This projects are based either on MFC (Microsoft Foundation Classes)
# or are compiled only under Windows. So that, they are available
# only when compile with Microsoft Visual Studio.
find_package(MFC)
if (MFC_FOUND)
# MFC specific projects. Can be compiled only if target machine has installed MFC.
# Otherwise, output warning message and exclude from the build.
include(${AREG_EXAMPLES}/17_winchat/CMakeLists.txt)
else(MFC_FOUND)
message(NOTICE " AREG Examples: >>> Due to missing installed MFC library, escaping compile projects:")
message(NOTICE " AREG Examples: >>> ${AREG_EXAMPLES}/17_winchat")
endif(MFC_FOUND)
endif()
endif(AREG_BUILD_EXAMPLES)