+## ============================
+## == Find bash applications ==
+## ============================
+
+SET(
+ _exec_programs
+ "@cpPlugins_bash_CreateRealConfig_APP@"
+ "@cpPlugins_bash_CreateInstances_APP@"
+ "@cpPlugins_bash_CreateDemanglers_APP@"
+ "@cpPlugins_bash_CreatePlugins_APP@"
+ "@cpPlugins_bash_HostCreator_APP@"
+ )
+
+SET(_b_locations)
+FOREACH(_p ${_exec_programs})
+ FIND_PROGRAM(
+ ${_p}_APP
+ NAMES ${_p}
+ HINTS /usr /usr/local
+ PATHS @CMAKE_INSTALL_PREFIX@/bin @PROJECT_BINARY_DIR@ ${_b_locations}
+ PATH_SUFFIXES bin sbin
+ DOC "Where is ${_prog}?"
+ )
+ IF(${_p}_APP)
+ MARK_AS_ADVANCED(FORCE ${_p}_APP)
+ GET_FILENAME_COMPONENT(_dir ${${_p}_APP} DIRECTORY)
+ LIST(APPEND _b_locations ${_dir})
+ LIST(REMOVE_DUPLICATES _b_locations)
+ ENDIF(${_p}_APP)
+ENDFOREACH(_p)
+