aboutsummaryrefslogtreecommitdiffstats
path: root/cmakeconfig/EsoapModelConfig.cmake.in
diff options
context:
space:
mode:
authorGuilherme Lepsch <lepsch@expertisesolutions.com.br>2015-07-31 15:25:18 -0300
committerGuilherme Lepsch <lepsch@expertisesolutions.com.br>2015-08-03 11:31:16 -0300
commit57e390e1537841116e92e9140dbd1993b141aee3 (patch)
tree93420908e08f09fb9caad72d275e7f5690aac052 /cmakeconfig/EsoapModelConfig.cmake.in
parenteflat_xml_model: "Flat" Xml Model implementation (diff)
downloadefl-devs/felipealmeida/esoap-model.tar.gz
esoap_model: Soap Model implementationdevs/felipealmeida/esoap-model
Diffstat (limited to 'cmakeconfig/EsoapModelConfig.cmake.in')
-rw-r--r--cmakeconfig/EsoapModelConfig.cmake.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/cmakeconfig/EsoapModelConfig.cmake.in b/cmakeconfig/EsoapModelConfig.cmake.in
new file mode 100644
index 0000000000..701d07054e
--- /dev/null
+++ b/cmakeconfig/EsoapModelConfig.cmake.in
@@ -0,0 +1,32 @@
+# - Try to find esoap_model
+# Once done this will define
+# ESOAP_MODEL_FOUND - System has esoap_model
+# ESOAP_MODEL_INCLUDE_DIRS - The esoap_model include directories
+# ESOAP_MODEL_LIBRARIES - The libraries needed to use esoap_model
+# ESOAP_MODEL_DEFINITIONS - Compiler switches required for using esoap_model
+
+set(MY_PKG esoap_model)
+
+find_package(PkgConfig)
+if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.1")
+ # "QUIET" was introduced in 2.8.2
+ set(_QUIET QUIET)
+endif ()
+pkg_check_modules(PC_LIBESOAP_MODEL ${_QUIET} ${MY_PKG})
+
+find_library(ESOAP_MODEL_LIBRARY
+ NAMES ${PC_LIBESOAP_MODEL_LIBRARIES}
+ HINTS ${PC_LIBESOAP_MODEL_LIBDIR} ${PC_LIBESOAP_MODEL_LIBRARY_DIRS} )
+
+set(ESOAP_MODEL_DEFINITIONS ${PC_LIBESOAP_MODEL_CFLAGS_OTHER})
+set(ESOAP_MODEL_LIBRARIES ${ESOAP_MODEL_LIBRARY})
+set(ESOAP_MODEL_INCLUDE_DIRS ${PC_LIBESOAP_MODEL_INCLUDE_DIRS})
+
+include(FindPackageHandleStandardArgs)
+# handle the QUIETLY and REQUIRED arguments and set ESOAP_MODEL_FOUND to TRUE
+# if all listed variables are TRUE
+find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
+ ESOAP_MODEL_LIBRARIES ESOAP_MODEL_INCLUDE_DIRS)
+
+mark_as_advanced(ESOAP_MODEL_INCLUDE_DIRS ESOAP_MODEL_LIBRARY ESOAP_MODEL_LIBRARIES ESOAP_MODEL_DEFINITIONS)
+