--- src/components/CMakeLists.txt~ 2017-11-18 09:14:26.000000000 -0800 +++ src/components/CMakeLists.txt 2018-03-27 23:08:05.755707708 -0700 @@ -7,6 +7,6 @@ target_link_libraries(OOMLComponents OOMLCore) # Install components library -install(TARGETS OOMLComponents DESTINATION lib) +install(TARGETS OOMLComponents PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) file(GLOB COMPONENTS_HEADERS "*.h") install(FILES ${COMPONENTS_HEADERS} DESTINATION include/ooml/components) --- src/core/CMakeLists.txt~ 2017-11-18 09:14:26.000000000 -0800 +++ src/core/CMakeLists.txt 2018-03-27 23:08:05.899706645 -0700 @@ -6,6 +6,6 @@ add_library(OOMLCore SHARED ${CORE_SOURCES}) # Install core library -install(TARGETS OOMLCore DESTINATION lib) +install(TARGETS OOMLCore PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) file(GLOB CORE_HEADERS "*.h") install(FILES ${CORE_HEADERS} DESTINATION include/ooml/core) --- src/parts/CMakeLists.txt~ 2017-11-18 09:14:26.000000000 -0800 +++ src/parts/CMakeLists.txt 2018-03-27 23:08:05.539709302 -0700 @@ -7,6 +7,6 @@ target_link_libraries(OOMLParts OOMLCore OOMLComponents) # Install parts library -install(TARGETS OOMLParts DESTINATION lib) +install(TARGETS OOMLParts PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) file(GLOB PARTS_HEADERS "*.h") install(FILES ${PARTS_HEADERS} DESTINATION include/ooml/parts)