Added install target

This commit is contained in:
2018-12-26 15:04:32 +01:00
parent cc0d44a01d
commit d4defbc9a7
3 changed files with 15 additions and 12 deletions

View File

@ -42,9 +42,19 @@ endif ()
add_dependencies(moReader moFileReader)
target_link_libraries(moReader moFileReader)
install(TARGETS moReader
RUNTIME DESTINATION bin
)
install(TARGETS moFileReader
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include
)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION include/)
option(BUILD_TEST "Set this to ON if you want to build the test" OFF)
if(BUILD_TEST)
enable_testing()
add_subdirectory(test)
endif()
endif()