From 3fe14687e6a692ea1e7835f7f233ad4ac36fc0c1 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 15 Dec 2020 20:38:15 +0200 Subject: [PATCH] add "make install" for imtui-ncurses --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 801884df..f70c252b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required (VERSION 3.10) -project(imtui) +project(imtui VERSION 1.0.0) set(CMAKE_EXPORT_COMPILE_COMMANDS "on") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) @@ -97,3 +97,12 @@ add_subdirectory(src) if (IMTUI_STANDALONE AND IMTUI_BUILD_EXAMPLES) add_subdirectory(examples) endif() + +include(GNUInstallDirs) +install(TARGETS imtui-ncurses + EXPORT imtui-ncurses + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} +)