37 lines
743 B
CMake
37 lines
743 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(dropshell VERSION 1.0.0 LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
# Find required packages
|
|
find_package(Boost REQUIRED COMPONENTS program_options filesystem system)
|
|
|
|
# Add executable
|
|
add_executable(dropshell
|
|
src/main.cpp
|
|
src/version.cpp
|
|
src/status.cpp
|
|
src/servers.cpp
|
|
src/help.cpp
|
|
src/config.cpp
|
|
)
|
|
|
|
# Link libraries
|
|
target_link_libraries(dropshell PRIVATE
|
|
Boost::program_options
|
|
Boost::filesystem
|
|
Boost::system
|
|
)
|
|
|
|
# Install targets
|
|
install(TARGETS dropshell
|
|
RUNTIME DESTINATION bin
|
|
)
|
|
|
|
# Install completion script
|
|
install(FILES src/dropshell-completion.bash
|
|
DESTINATION /etc/bash_completion.d
|
|
RENAME dropshell
|
|
)
|