mirror of
https://github.com/fmang/opustags.git
synced 2024-09-20 07:42:38 +02:00
Build: make installation targets
Usage: cd build cmake .. make sudo make install
This commit is contained in:
parent
0d91429435
commit
f26de884aa
@ -54,6 +54,15 @@ if (NOT EXISTS "${CATCH_PATH}")
|
||||
file(DOWNLOAD "http://raw.githubusercontent.com/philsquared/Catch/master/single_include/catch.hpp" "${CATCH_PATH}")
|
||||
endif()
|
||||
|
||||
# ------------
|
||||
# Installation
|
||||
# ------------
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/doc/opustags.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1)
|
||||
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/opustags DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
add_custom_target(uninstall COMMAND
|
||||
rm -f "${CMAKE_INSTALL_PREFIX}/man/man1/opustags.1" &&
|
||||
rm -f "${CMAKE_INSTALL_PREFIX}/bin/opustags" )
|
||||
|
||||
# -------------------
|
||||
# Linking definitions
|
||||
# -------------------
|
||||
|
Loading…
Reference in New Issue
Block a user