summaryrefslogtreecommitdiffstats
path: root/utils/sys-utils/CMakeLists.txt
blob: a36e88cedcdfbc02f77d721fbb1b815c6bd1de6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmake_minimum_required(VERSION 3.10)

# set the project name
project(xloop-utils-sys-utils)

# add xlosetup executable
add_executable(xlosetup ${CMAKE_CURRENT_SOURCE_DIR}/losetup.c)
target_link_libraries(xlosetup LINK_PUBLIC libcommon libsmartcols)
target_include_directories(xlosetup PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../lib ${CMAKE_CURRENT_SOURCE_DIR}/../libsmartcols)
install(TARGETS xlosetup DESTINATION bin)

install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/losetup.8
        DESTINATION /usr/share/man/man8
        PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)