summaryrefslogtreecommitdiff
path: root/diskman/CMakeLists.txt
blob: 1a48ade9071ab93b92cfe2d42d93592f50a1a4b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/man/ DESTINATION share/man/man3)