Skip to content

Commit

Permalink
Fix : binaries missing in installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy committed Oct 1, 2018
1 parent 27b1e07 commit 3fb50e5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,23 +249,24 @@ unset(isSystemDir)

# Install library
install(
TARGETS QualityControl
TARGETS QualityControl ${EXE_NAMES} tobject2json
EXPORT QualityControlTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Install headers
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/QualityControl DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")

# Create version file
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/cmake/QualityControlConfigVersion.cmake"
VERSION ${PACKAGE_VERSION}
COMPATIBILITY AnyNewerVersion
"${CMAKE_CURRENT_BINARY_DIR}/cmake/QualityControlConfigVersion.cmake"
VERSION ${PACKAGE_VERSION}
COMPATIBILITY AnyNewerVersion
)

# Install headers
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/QualityControl DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")

# Export targets
install(
EXPORT QualityControlTargets
Expand Down

0 comments on commit 3fb50e5

Please sign in to comment.