37 lines
1 KiB
CMake
37 lines
1 KiB
CMake
cmake_minimum_required(VERSION 3.9)
|
|
|
|
set(VERSION "1.0.1")
|
|
set(RELEASE, 1)
|
|
set(PACKAGE_NAME "mktouch")
|
|
set(VENDOR "AA")
|
|
set(DESCRIPTION "Make directory's and files at the same time")
|
|
|
|
set(CPACK_PACKAGE_CONTACT "Ade Attwood")
|
|
|
|
project(${PACKAGE_NAME})
|
|
|
|
add_subdirectory (src)
|
|
|
|
add_executable(mktouch ./src/App.cpp
|
|
./src/Cli.cpp
|
|
./src/main.cpp)
|
|
|
|
FIND_PACKAGE(Boost COMPONENTS program_options filesystem REQUIRED)
|
|
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
|
|
|
|
TARGET_LINK_LIBRARIES(mktouch ${Boost_LIBRARIES})
|
|
|
|
set(CPACK_PACKAGE_VERSION ${VERSION})
|
|
set(CPACK_GENERATOR "DEB;ZIP;TGZ")
|
|
set(CPACK_PACKAGE_NAME ${PACKAGE_NAME})
|
|
set(CPACK_PACKAGE_RELEASE ${RELEASE})
|
|
set(CPACK_PACKAGE_VENDOR ${VENDOR})
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
|
set(CPACK_PACKAGE_DESCRIPTION ${DESCRIPTION})
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost-program-options1.62.0,libboost-filesystem1.62.0,libboost-system1.62.0,libstdc++6,libgcc1,libc6")
|
|
|
|
install(TARGETS mktouch DESTINATION bin)
|
|
install(DIRECTORY man DESTINATION .)
|
|
|
|
include(CPack)
|