aboutsummaryrefslogtreecommitdiffstats
path: root/FindGeneratorRunner.cmake.in
diff options
context:
space:
mode:
authorChris Hills <chaz@chaz6.com>2009-08-31 19:19:01 +0200
committerHugo Lima <hugo.lima@openbossa.org>2009-08-31 17:17:39 -0300
commit267d9adb4f6e19b3c314a501f84d8fae22c0983c (patch)
treea462924bd3bec14b3b868d70d53bfad10f39d073 /FindGeneratorRunner.cmake.in
parent06b1408262174c6bbfc4113f2c68fa692f19def3 (diff)
Add pkg-config and cmake support
Reviewed by Hugo Parente
Diffstat (limited to 'FindGeneratorRunner.cmake.in')
-rw-r--r--FindGeneratorRunner.cmake.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/FindGeneratorRunner.cmake.in b/FindGeneratorRunner.cmake.in
new file mode 100644
index 000000000..c6a431b4f
--- /dev/null
+++ b/FindGeneratorRunner.cmake.in
@@ -0,0 +1,15 @@
+# - try to find GENERATORRUNNER
+# GENERATORRUNNER_INCLUDE_DIR - Directories to include to use GENERATORRUNNER
+# GENERATORRUNNER_LIBRARIES - Files to link against to use GENERATORRUNNER
+# GENERATORRUNNER_FOUND - GENERATORRUNNER was found
+
+FIND_PATH(GENERATORRUNNER_INCLUDE_DIR generator.h @CMAKE_INSTALL_PREFIX@/include/generatorrunner)
+
+FIND_LIBRARY(GENERATORRUNNER_LIBRARY genrunner @CMAKE_INSTALL_PREFIX@/lib)
+
+SET(GENERATORRUNNER_FOUND "NO")
+IF(GENERATORRUNNER_LIBRARY AND GENERATORRUNNER_INCLUDE_DIR)
+ SET(GENERATORRUNNER_FOUND "YES")
+ENDIF(GENERATORRUNNER_LIBRARY AND GENERATORRUNNER_INCLUDE_DIR)
+
+