summaryrefslogtreecommitdiffstats
path: root/contrib/cmake/FindPION.cmake
diff options
context:
space:
mode:
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)