summaryrefslogtreecommitdiffstats
path: root/contrib/cmake/FindPION.cmake
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2012-09-08 23:26:39 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2012-09-08 23:26:39 (GMT)
commitaa6c3a1257a29cc5bcf8b94893732ee553f27582 (patch)
tree625adb1a353a17ffed2c7e0bac686d705aaec93f /contrib/cmake/FindPION.cmake
downloaduscxml-aa6c3a1257a29cc5bcf8b94893732ee553f27582.zip
uscxml-aa6c3a1257a29cc5bcf8b94893732ee553f27582.tar.gz
uscxml-aa6c3a1257a29cc5bcf8b94893732ee553f27582.tar.bz2
Initial upload
Still somewhat quirky to build but fairly feature complete
Diffstat (limited to 'contrib/cmake/FindPION.cmake')
-rw-r--r--contrib/cmake/FindPION.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/cmake/FindPION.cmake b/contrib/cmake/FindPION.cmake
new file mode 100644
index 0000000..3a4157a
--- /dev/null
+++ b/contrib/cmake/FindPION.cmake
@@ -0,0 +1,20 @@
+FIND_PATH(PION_INCLUDE_DIR pion/config.hpp
+ PATH_SUFFIXES include
+ PATHS
+ /usr/local
+ /usr
+ /sw # Fink
+ /opt/local # DarwinPorts
+ /opt/csw # Blastwave
+ /opt
+ HINTS $ENV{PION_SRC}
+)
+
+FIND_LIBRARY(PION_LIBRARY
+ NAMES pion
+ HINTS $ENV{PION_SRC}/src/.libs/
+)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(PION DEFAULT_MSG PION_LIBRARY PION_INCLUDE_DIR)
+MARK_AS_ADVANCED(PION_LIBRARY PION_INCLUDE_DIR)