summaryrefslogtreecommitdiffstats
path: root/mof
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2013-11-06 09:31:15 +0100
committerRadek Novacek <rnovacek@redhat.com>2013-11-06 10:19:30 +0100
commitf9532a59568191f200c85cfbf82f940ccffad698 (patch)
tree9afd0de6d8a1d8979f849676311e3d8e5b29e1b8 /mof
parent0530987d8439d3ae00e640836c01de38d3da6d97 (diff)
downloadopenlmi-providers-f9532a59568191f200c85cfbf82f940ccffad698.tar.gz
openlmi-providers-f9532a59568191f200c85cfbf82f940ccffad698.tar.xz
openlmi-providers-f9532a59568191f200c85cfbf82f940ccffad698.zip
Don't install mof files for disabled providers
When provider is disabled via WITH-PROVIDER=OFF in cmake, don't install even the mof file. Fixes ticket #170.
Diffstat (limited to 'mof')
-rw-r--r--mof/CMakeLists.txt48
1 files changed, 44 insertions, 4 deletions
diff --git a/mof/CMakeLists.txt b/mof/CMakeLists.txt
index cfdc181..f367434 100644
--- a/mof/CMakeLists.txt
+++ b/mof/CMakeLists.txt
@@ -1,6 +1,46 @@
-file(GLOB MOFS *.mof)
+install(FILES 05_LMI_Qualifiers.mof 30_LMI_Jobs.mof DESTINATION share/openlmi-providers/)
+
+if (WITH-FAN)
+ install(FILES 60_LMI_Fan.mof DESTINATION share/openlmi-providers/)
+endif (WITH-FAN)
+
+if (WITH-POWER)
+ install(FILES 60_LMI_PowerManagement.mof DESTINATION share/openlmi-providers/)
+endif (WITH-POWER)
+
+if (WITH-SERVICE)
+ install(FILES 60_LMI_Service.mof DESTINATION share/openlmi-providers/)
+endif (WITH-SERVICE)
+
+if (WITH-ACCOUNT)
+ install(FILES 60_LMI_Account.mof DESTINATION share/openlmi-providers/)
+endif (WITH-ACCOUNT)
+
+if (WITH-HARDWARE)
+ install(FILES 60_LMI_Hardware.mof DESTINATION share/openlmi-providers/)
+endif (WITH-HARDWARE)
+
+if (WITH-LOGICALFILE)
+ install(FILES 60_LMI_LogicalFile.mof DESTINATION share/openlmi-providers/)
+endif (WITH-LOGICALFILE)
+
+if (WITH-REALMD)
+ install(FILES 60_LMI_Realmd.mof DESTINATION share/openlmi-providers/)
+endif (WITH-REALMD)
+
+if (WITH-PCP)
+ install(FILES 60_LMI_PCP.mof DESTINATION share/openlmi-providers/)
+endif (WITH-PCP)
+
+if (WITH-SOFTWARE)
+ install(FILES 60_LMI_Software.mof LMI_Software.reg
+ 60_LMI_Software_MethodParameters.mof
+ 70_LMI_SoftwareIndicationFilters.mof
+ DESTINATION share/openlmi-providers/)
+endif (WITH-SOFTWARE)
+
+if (WITH-JOURNALD)
+ install(FILES 60_LMI_Journald.mof DESTINATION share/openlmi-providers/)
+endif (WITH-JOURNALD)
-foreach(MOF ${MOFS})
- install(FILES ${MOF} DESTINATION share/openlmi-providers/)
-endforeach(MOF ${MOFS})