blob: 6697962780920a17a3a5bd19322fabbdb10163dc (
plain)
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
|
# Fetch element
file(GLOB_RECURSE FETCH_ELEMENT
fetch/*.cpp
fetch/*.h
)
source_group("Element\\fetch" FILES ${FETCH_ELEMENT})
if (BUILD_AS_PLUGINS)
add_library(
element_fetch SHARED
${FETCH_ELEMENT})
target_link_libraries(element_fetch uscxml)
set_target_properties(element_fetch PROPERTIES FOLDER "Plugin Element")
else()
list (APPEND USCXML_FILES ${FETCH_ELEMENT})
endif()
# MMI elements
# file(GLOB_RECURSE MMI_ELEMENT
# mmi/*.cpp
# mmi/*.h
# )
# source_group("Element\\mmi" FILES ${MMI_ELEMENT})
# if (BUILD_AS_PLUGINS)
# add_library(
# element_mmi SHARED
# ${MMI_ELEMENT})
# target_link_libraries(element_mmi uscxml)
# set_target_properties(element_mmi PROPERTIES FOLDER "Plugin Element")
# else()
# list (APPEND USCXML_FILES ${MMI_ELEMENT})
# endif()
# Postpone element
file(GLOB_RECURSE POSTPONE_ELEMENT
postpone/*.cpp
postpone/*.h
)
source_group("Element\\postpone" FILES ${POSTPONE_ELEMENT})
if (BUILD_AS_PLUGINS)
add_library(
element_postpone SHARED
${POSTPONE_ELEMENT})
target_link_libraries(element_postpone uscxml)
set_target_properties(element_postpone PROPERTIES FOLDER "Plugin Element")
else()
list (APPEND USCXML_FILES ${POSTPONE_ELEMENT})
endif()
# Respond element
file(GLOB_RECURSE RESPOND_ELEMENT
respond/*.cpp
respond/*.h
)
source_group("Element\\respond" FILES ${RESPOND_ELEMENT})
if (BUILD_AS_PLUGINS)
add_library(
element_respond SHARED
${RESPOND_ELEMENT})
target_link_libraries(element_respond uscxml)
set_target_properties(element_respond PROPERTIES FOLDER "Plugin Element")
else()
list (APPEND USCXML_FILES ${RESPOND_ELEMENT})
endif()
set(USCXML_INCLUDE_DIRS ${USCXML_INCLUDE_DIRS} PARENT_SCOPE)
set(USCXML_FILES ${USCXML_FILES} PARENT_SCOPE)
|