summaryrefslogtreecommitdiff
path: root/cmake/modules/FindLibDigiDocpp.cmake
diff options
context:
space:
mode:
authorAndrew Shadura <andrewsh@debian.org>2015-11-01 19:41:28 +0100
committerAndrew Shadura <andrewsh@debian.org>2015-11-01 19:41:28 +0100
commit61c1a106bd81794f48e4cd85bae129f9270279e8 (patch)
tree29ecf644c4a13c2645bd8067e66ae8944dd2daf9 /cmake/modules/FindLibDigiDocpp.cmake
libdigidoc (3.10.1.1208-1) unstable; urgency=medium
* Initial upload (Closes: #658300). # imported from the archive
Diffstat (limited to 'cmake/modules/FindLibDigiDocpp.cmake')
-rw-r--r--cmake/modules/FindLibDigiDocpp.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake/modules/FindLibDigiDocpp.cmake b/cmake/modules/FindLibDigiDocpp.cmake
new file mode 100644
index 0000000..8ec6371
--- /dev/null
+++ b/cmake/modules/FindLibDigiDocpp.cmake
@@ -0,0 +1,28 @@
+# - Find LibDigiDocpp
+# Find the native LibDigiDocpp includes and library
+#
+# LIBDIGIDOCPP_INCLUDE_DIR - where to find winscard.h, wintypes.h, etc.
+# LIBDIGIDOCPP_LIBRARIES - List of libraries when using LibDigiDocpp.
+# LIBDIGIDOCPP_FOUND - True if LibDigiDocpp found.
+
+
+IF (LIBDIGIDOCPP_INCLUDE_DIR)
+ # Already in cache, be silent
+ SET(LIBDIGIDOCPP_FIND_QUIETLY TRUE)
+ENDIF (LIBDIGIDOCPP_INCLUDE_DIR)
+
+FIND_PATH(LIBDIGIDOCPP_INCLUDE_DIR digidocpp/Container.h PATH_SUFFIXES include)
+FIND_LIBRARY(LIBDIGIDOCPP_LIBRARY NAMES digidocpp)
+
+# handle the QUIETLY and REQUIRED arguments and set LIBDIGIDOCPP_FOUND to TRUE if
+# all listed variables are TRUE
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibDigiDocpp DEFAULT_MSG LIBDIGIDOCPP_LIBRARY LIBDIGIDOCPP_INCLUDE_DIR)
+
+IF(LIBDIGIDOCPP_FOUND)
+ SET( LIBDIGIDOCPP_LIBRARIES ${LIBDIGIDOCPP_LIBRARY} )
+ELSE(LIBDIGIDOCPP_FOUND)
+ SET( LIBDIGIDOCPP_LIBRARIES )
+ENDIF(LIBDIGIDOCPP_FOUND)
+
+MARK_AS_ADVANCED(LIBDIGIDOCPP_LIBRARY LIBDIGIDOCPP_INCLUDE_DIR)