summaryrefslogtreecommitdiffstats
path: root/src/power
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2012-07-30 13:08:04 +0200
committerRadek Novacek <rnovacek@redhat.com>2012-07-30 14:57:58 +0200
commit0826d3ff487b5ce5fece56767e6cf88f81059c03 (patch)
tree1e878863571143c0b724e57c889571b475a36c0a /src/power
parent2034a2140dc0908476ee83a9825c0dbad7d9a32a (diff)
downloadopenlmi-providers-0826d3ff487b5ce5fece56767e6cf88f81059c03.tar.gz
openlmi-providers-0826d3ff487b5ce5fece56767e6cf88f81059c03.tar.xz
openlmi-providers-0826d3ff487b5ce5fece56767e6cf88f81059c03.zip
Make provider optional using cmake options
Diffstat (limited to 'src/power')
-rw-r--r--src/power/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/power/CMakeLists.txt b/src/power/CMakeLists.txt
index 606c1f3..f30cb87 100644
--- a/src/power/CMakeLists.txt
+++ b/src/power/CMakeLists.txt
@@ -18,6 +18,9 @@ add_library(${LIBRARY_NAME} SHARED
${CIM_HEADERS}
)
+# Require GLib
+pkg_check_modules(GLIB REQUIRED glib-2.0)
+
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMPI_INCLUDE_DIR} ${GLIB_INCLUDE_DIRS})
target_link_libraries(${LIBRARY_NAME} curacommon ${KONKRETCMPI_LIBRARIES} ${GLIB_LIBRARIES})