summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 6d41f49cb2376ba6f6dab65d20eb6909be185089 (plain)
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
include_directories(.)

add_library(openlmicommon SHARED
            globals.c
)

set_target_properties(openlmicommon PROPERTIES SOVERSION 0.0.1)

install(TARGETS openlmicommon DESTINATION lib${LIB_SUFFIX})
install(FILES globals.h DESTINATION include/openlmi)

if (WITH-FAN)
    add_subdirectory(fan)
endif (WITH-FAN)

if (WITH-POWER)
    add_subdirectory(power)
endif (WITH-POWER)

if (WITH-SERVICE)
    add_subdirectory(service)
endif (WITH-SERVICE)

if (WITH-ACCOUNT)
    add_subdirectory(account)
endif (WITH-ACCOUNT)

if (WITH-HARDWARE)
    add_subdirectory(hardware)
endif (WITH-HARDWARE)