Skip to content

Commit

Permalink
add "make install" for imtui-ncurses
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Dec 15, 2020
1 parent 3d94cab commit 3fe1468
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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}
)

0 comments on commit 3fe1468

Please sign in to comment.