summaryrefslogblamecommitdiffstats
path: root/src/utils/sys-utils/CMakeLists.txt
blob: 56bc69c90c4cf56fc7df6f812d2ebda30ed642d8 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                    

                             

                         
                                                               
                                                                    

                                        
 






                                                                                                                                        
cmake_minimum_required(VERSION 3.10)

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

# add xlosetup executable
add_executable(xlosetup ${CMAKE_CURRENT_SOURCE_DIR}/xlosetup.c)
target_link_libraries(xlosetup libcommon libsmartcols xloop-version)
install(TARGETS xlosetup DESTINATION bin
        COMPONENT main)

# install xlosetup man page
# NOTE: installation is done via a directory install with file matching pattern to support CPackRPM's automatic compression of man pages
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
        DESTINATION share/man/man8
        COMPONENT main
        USE_SOURCE_PERMISSIONS
        FILES_MATCHING PATTERN *.8*)