[A] Added installation phase to library target

This commit is contained in:
seleznevae 2019-05-22 23:20:33 +03:00
parent 900d0de6c9
commit 79ce9896f4

View File

@ -18,3 +18,15 @@ if(FORT_HAVE_WCHAR)
-DFT_CONGIG_HAVE_WCHAR -DFT_CONGIG_HAVE_WCHAR
) )
endif() endif()
include(GNUInstallDirs)
install(
TARGETS
fort
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(FILES fort.h fort.hpp DESTINATION include)