Skip to content

Commit

Permalink
Merge branch 'release/0.0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimaciel committed Jun 21, 2020
2 parents 86abbf9 + b1b38aa commit c7a9943
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.7)

project(msexpr
VERSION 0.0.2.0
VERSION 0.0.3.0
LANGUAGES C
)

Expand Down Expand Up @@ -82,23 +82,47 @@ if (${ENABLE_TESTS})
add_subdirectory(tests)
endif()

install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}
LIBRARY DESTINATION lib/${PROJECT_NAME}
PUBLIC_HEADER DESTINATION include/${PROJECT_NAME}
install(TARGETS msexpr
EXPORT msexprTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

install(
FILES ${msexpr_INCLUDES}
DESTINATION "include/msexpr"
COMPONENT Devel
)

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/include/msexpr/version.h
DESTINATION include/${PROJECT_NAME}
)
include(CMakePackageConfigHelpers)

install(
EXPORT ${PROJECT_NAME}
DESTINATION lib/cmake/${PROJECT_NAME}
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/msexpr/msexpr-config-version.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY AnyNewerVersion
)

export(EXPORT msexprTargets
FILE "${CMAKE_CURRENT_BINARY_DIR}/msexpr/msexpr-targets.cmake"
)

set(ConfigPackageLocation lib/cmake/msexpr)

install(EXPORT msexprTargets
FILE "msexpr-targets.cmake"
DESTINATION ${ConfigPackageLocation}
)

install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/msexpr/msexpr-config-version.cmake"
DESTINATION ${ConfigPackageLocation}
COMPONENT Devel
)



#Setup CPACK to generate installer
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
Expand Down

0 comments on commit c7a9943

Please sign in to comment.