From 0826d3ff487b5ce5fece56767e6cf88f81059c03 Mon Sep 17 00:00:00 2001 From: Radek Novacek Date: Mon, 30 Jul 2012 13:08:04 +0200 Subject: Make provider optional using cmake options --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 552894c..d642b24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,18 +12,21 @@ else(CMAKE_SIZEOF_VOID_P EQUAL 4) SET(LIB_SUFFIX 64) endif(CMAKE_SIZEOF_VOID_P EQUAL 4) +option(WITH-FAN "Build fan provider" ON) +option(WITH-POWER "Build power provider" ON) +option(WITH-SERVICE "Build service provider" ON) + # Set path to custom cmake modules set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) include(CuraMacros) +find_package(PkgConfig) + # Find required packages find_package(CMPI REQUIRED) find_package(KonkretCMPI REQUIRED) -find_package(PkgConfig) -pkg_check_modules(GLIB REQUIRED glib-2.0) - add_subdirectory(src) add_subdirectory(mof) -- cgit