summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/element/CMakeLists.txt
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-06-12 14:37:12 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-06-12 14:37:12 (GMT)
commitbfdd2f8e72005d1e2ef2a87d19d8ac242bb22557 (patch)
tree5c3e73450534bd8b4279d20f0171dcfb45167786 /src/uscxml/plugins/element/CMakeLists.txt
parent090016a3f5bcd66d6265fe1504430430f1dee7ed (diff)
downloaduscxml-bfdd2f8e72005d1e2ef2a87d19d8ac242bb22557.zip
uscxml-bfdd2f8e72005d1e2ef2a87d19d8ac242bb22557.tar.gz
uscxml-bfdd2f8e72005d1e2ef2a87d19d8ac242bb22557.tar.bz2
respond element and proper http ioproc
Diffstat (limited to 'src/uscxml/plugins/element/CMakeLists.txt')
-rw-r--r--src/uscxml/plugins/element/CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/uscxml/plugins/element/CMakeLists.txt b/src/uscxml/plugins/element/CMakeLists.txt
new file mode 100644
index 0000000..a32bdff
--- /dev/null
+++ b/src/uscxml/plugins/element/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Respond element
+
+OPTION(WITH_ELEMENT_RESPOND "Build the respond element" ON)
+if (WITH_ELEMENT_RESPOND)
+ set(USCXML_ELEMENTS "respond ${USCXML_ELEMENTS}")
+ file(GLOB_RECURSE ELEMENT_RESPOND
+ respond/*.cpp
+ respond/*.h)
+ if (BUILD_AS_PLUGINS)
+ source_group("" FILES ${ELEMENT_RESPOND})
+ add_library(element_respond SHARED ${ELEMENT_RESPOND} "../Plugins.cpp")
+ target_link_libraries(element_respond
+ uscxml
+ )
+ set_target_properties(element_respond PROPERTIES FOLDER "Plugins//Elements")
+ set_target_properties(element_respond PROPERTIES COMPILE_FLAGS "-DPLUMA_EXPORTS")
+ set_target_properties(element_respond PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/plugins")
+ else()
+ list (APPEND USCXML_FILES ${ELEMENT_RESPOND})
+ endif()
+endif()
+
+
+set(USCXML_INCLUDE_DIRS ${USCXML_INCLUDE_DIRS} PARENT_SCOPE)
+set(USCXML_FILES ${USCXML_FILES} PARENT_SCOPE)
+set(USCXML_ELEMENTS ${USCXML_ELEMENTS} PARENT_SCOPE)