blob: ea0c5fe27a2dcd7d660ec9a55f3965cfa64648e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
pkg_check_modules(FDISK REQUIRED fdisk)
find_package(Boost REQUIRED)
set(DISKMAN_SOURCE
diskman.cc
disk.cc
lvmhelp.cc
partition.cc
)
set(DISKMAN_INCLUDE
diskman.hh
disk.hh
partition.hh
)
include_directories(${Boost_INCLUDE_DIRS})
add_library(diskman ${DISKMAN_SOURCE})
target_link_libraries(diskman ${FDISK_LIBRARIES} ${LIBUDEV_LIBRARIES})
install(TARGETS diskman DESTINATION lib)
install(FILES ${DISKMAN_INCLUDE} DESTINATION include/diskman)
|