diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-01-16 15:10:59 +0100 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-01-16 15:10:59 +0100 |
commit | 5422c49f7f1d99263c5fa522774b6a5fd33bd528 (patch) | |
tree | 03872e7b5385dd08226f798ed66818f2b7baea2a /src/hardware/CMakeLists.txt | |
parent | fcfb2aa6c76759f19e859b00dc2cbcd9f12bde2c (diff) | |
parent | 8bdd20cd739de9399cc71d8f82eff55dc4c6d346 (diff) | |
download | openlmi-providers-5422c49f7f1d99263c5fa522774b6a5fd33bd528.tar.gz openlmi-providers-5422c49f7f1d99263c5fa522774b6a5fd33bd528.tar.xz openlmi-providers-5422c49f7f1d99263c5fa522774b6a5fd33bd528.zip |
Merge branch 'master' of ssh://git.fedorahosted.org/git/openlmi-providers
Diffstat (limited to 'src/hardware/CMakeLists.txt')
-rw-r--r-- | src/hardware/CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/hardware/CMakeLists.txt b/src/hardware/CMakeLists.txt new file mode 100644 index 0000000..27e8df2 --- /dev/null +++ b/src/hardware/CMakeLists.txt @@ -0,0 +1,29 @@ + +set(PROVIDER_NAME Hardware) +set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME}) +set(MOF LMI_Hardware.mof) + +#set(provider_SRCS +# util/serviceutil.c +#) + +konkretcmpi_generate(${MOF} + CIM_PROVIDERS + CIM_HEADERS +) + +add_library(${LIBRARY_NAME} SHARED + ${provider_SRCS} + ${CIM_PROVIDERS} + ${CIM_HEADERS} +) + +pkg_check_modules(LIBPCI REQUIRED libpci) + +include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMPI_INCLUDE_DIR} ${LIBPCI_INCLUDE_DIR}) +target_link_libraries(${LIBRARY_NAME} openlmicommon ${KONKRETCMPI_LIBRARIES} ${LIBPCI_LIBRARIES}) + +# Create registration file +cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers) + +install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi) |