CMake: Add necessary install rules for 'make install'
This commit is contained in:
parent
87bb21be58
commit
417f9fcbf2
|
@ -19,10 +19,14 @@ project(vis
|
|||
VERSION 1.0
|
||||
DESCRIPTION "Vi Scheduler (vis) is a simple TUI program built for managing your schedules in a calendar-like grid."
|
||||
LANGUAGES CXX C)
|
||||
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
||||
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
|
||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
find_library(NCURSES_LIB NAMES ncurses)
|
||||
target_link_libraries(vis ncurses)
|
||||
install(TARGETS vis DESTINATION bin)
|
||||
|
|
|
@ -7,3 +7,6 @@ add_executable(vis main.cpp)
|
|||
target_link_libraries(vis engine)
|
||||
target_link_libraries(vis calendar)
|
||||
target_link_libraries(vis base64)
|
||||
|
||||
set(installable_libs engine calendar base64)
|
||||
install(TARGETS ${installable_libs} DESTINATION lib)
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
add_library(base64 SHARED base64.c)
|
||||
install(FILES base64.h DESTINATION include)
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
add_library(calendar SHARED calendar.cpp)
|
||||
install(FILES calendar.hpp DESTINATION include)
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
add_library(engine SHARED engine.cpp)
|
||||
install(FILES engine.hpp DESTINATION include)
|
||||
|
|
Loading…
Reference in New Issue
Block a user