summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindCMPI.cmake
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2012-07-23 12:56:49 +0200
committerRadek Novacek <rnovacek@redhat.com>2012-07-23 12:56:49 +0200
commitfcb9f58e9ad3a2df5b9e003441f341805cebc051 (patch)
tree5737668157aaf8d379700389302f192ebbfa54ad /cmake/modules/FindCMPI.cmake
parent7bc4421f26954c2acd817c690cbbde03a4391878 (diff)
downloadopenlmi-providers-fcb9f58e9ad3a2df5b9e003441f341805cebc051.tar.gz
openlmi-providers-fcb9f58e9ad3a2df5b9e003441f341805cebc051.tar.xz
openlmi-providers-fcb9f58e9ad3a2df5b9e003441f341805cebc051.zip
Start converting all providers to CMake
Diffstat (limited to 'cmake/modules/FindCMPI.cmake')
-rw-r--r--cmake/modules/FindCMPI.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/modules/FindCMPI.cmake b/cmake/modules/FindCMPI.cmake
new file mode 100644
index 0000000..d814eef
--- /dev/null
+++ b/cmake/modules/FindCMPI.cmake
@@ -0,0 +1,12 @@
+
+find_path(CMPI_INCLUDE_DIR
+ NAMES cmpidt.h cmpift.h cmpimacs.h cmpios.h cmpipl.h
+ HINTS $ENV{CMPI_INCLUDE_DIR}
+ PATH_SUFFIXES include/cmpi include
+ PATHS /usr /usr/local
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(CMPI DEFAULT_MSG CMPI_INCLUDE_DIR)
+
+mark_as_advanced(CMPI_INCLUDE_DIR)