diff --git a/CMakeLists.txt b/CMakeLists.txt index 693dc6b..2d4d7d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,17 @@ else() endif() endif() -install(TARGETS libblisp libblisp_static DESTINATION lib) +include(GNUInstallDirs) +install(TARGETS libblisp libblisp_static + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} +) + +install(FILES ${BLISP_PUBLIC_HEADERS} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} +) if(BLISP_BUILD_CLI) add_subdirectory(tools/blisp) @@ -99,4 +109,4 @@ endif() if(COMPILE_TESTS) add_subdirectory(tools/blisp/src/cmd/dfu/tests) -endif(COMPILE_TESTS) \ No newline at end of file +endif(COMPILE_TESTS)