-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
35 lines (26 loc) · 1.04 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 2.6)
set (LMIBMC_VERSION_MAJOR 0)
set (LMIBMC_VERSION_MINOR 5)
set (LMIBMC_VERSION_REVISION 4)
set (LMIBMC_VERSION "${LMIBMC_VERSION_MAJOR}.${LMIBMC_VERSION_MINOR}.${LMIBMC_VERSION_REVISION}")
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(LIB_SUFFIX "")
else(CMAKE_SIZEOF_VOID_P EQUAL 4)
SET(LIB_SUFFIX 64)
endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
set (CMAKE_INSTALL_PREFIX /usr)
set (DOCDIR "share/doc/openlmi-bmc/" )
add_definitions(-D_GNU_SOURCE)
set(CMAKE_C_FLAGS "-std=c99 -pedantic -g3 -Wextra -Wformat -Wparentheses -Wl,--no-undefined ${CMAKE_C_FLAGS}")
find_package(PkgConfig)
pkg_check_modules (GLIB glib-2.0)
include(OpenLMIMacros RESULT_VARIABLE LMIMACROS)
if (${LMIMACROS} STREQUAL "NOTFOUND")
message(FATAL_ERROR "OpenLMIMacros.cmake not found, check if openlmi-providers(-devel) is installed")
endif (${LMIMACROS} STREQUAL "NOTFOUND")
install( FILES COPYING DESTINATION ${DOCDIR} )
find_package(CMPI REQUIRED)
find_package(KonkretCMPI REQUIRED)
add_subdirectory(src)
add_subdirectory(mof)
add_subdirectory(pkg)