summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-01-14 16:32:59 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-01-14 16:32:59 (GMT)
commit2c003d653d056f9125e19f0b5571c1debcdf9a98 (patch)
treecf4050ef6b6d985b528e2382930f171ea9b0c612 /src
parenta768843810b1e6f9ce6ad2ec078f6544ffa3266d (diff)
downloaduscxml-2c003d653d056f9125e19f0b5571c1debcdf9a98.zip
uscxml-2c003d653d056f9125e19f0b5571c1debcdf9a98.tar.gz
uscxml-2c003d653d056f9125e19f0b5571c1debcdf9a98.tar.bz2
Don't build expect invoker if tcl is not found
Diffstat (limited to 'src')
-rw-r--r--src/uscxml/plugins/invoker/CMakeLists.txt32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/uscxml/plugins/invoker/CMakeLists.txt b/src/uscxml/plugins/invoker/CMakeLists.txt
index 607e64e..c6ec719 100644
--- a/src/uscxml/plugins/invoker/CMakeLists.txt
+++ b/src/uscxml/plugins/invoker/CMakeLists.txt
@@ -97,21 +97,23 @@ endif()
# expect invoker
-set(USCXML_INVOKERS "expect ${USCXML_INVOKERS}")
-file(GLOB_RECURSE EXPECT_INVOKER
- expect/*.cpp
- expect/*.h
-)
-if (BUILD_AS_PLUGINS)
- source_group("" FILES EXPECT_INVOKER)
- add_library(
- invoker_expect SHARED
- ${EXPECT_INVOKER}
- "../Plugins.cpp")
- target_link_libraries(invoker_expect uscxml)
- set_target_properties(invoker_expect PROPERTIES FOLDER "Plugin Invoker")
-else()
- list (APPEND USCXML_FILES ${EXPECT_INVOKER})
+if (EXPECT_FOUND AND TCL_FOUND)
+ set(USCXML_INVOKERS "expect ${USCXML_INVOKERS}")
+ file(GLOB_RECURSE EXPECT_INVOKER
+ expect/*.cpp
+ expect/*.h
+ )
+ if (BUILD_AS_PLUGINS)
+ source_group("" FILES EXPECT_INVOKER)
+ add_library(
+ invoker_expect SHARED
+ ${EXPECT_INVOKER}
+ "../Plugins.cpp")
+ target_link_libraries(invoker_expect uscxml)
+ set_target_properties(invoker_expect PROPERTIES FOLDER "Plugin Invoker")
+ else()
+ list (APPEND USCXML_FILES ${EXPECT_INVOKER})
+ endif()
endif()