Compare commits
1 Commits
main
...
b0d1b22477
| Author | SHA1 | Date | |
|---|---|---|---|
| b0d1b22477 |
@@ -345,14 +345,7 @@ if(Python3_FOUND)
|
||||
# The script configures and drives its own instrumented build tree (under
|
||||
# ${CMAKE_BINARY_DIR}/coverage) so this build's binaries and its coverage
|
||||
# counters can never be stale or half-instrumented. Reports via gcov.
|
||||
# Keep the convenient generic name at the top level, but namespace it when
|
||||
# embedded so a parent project can provide its own coverage target.
|
||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
set(AKERR_COVERAGE_TARGET coverage)
|
||||
else()
|
||||
set(AKERR_COVERAGE_TARGET akerror_coverage)
|
||||
endif()
|
||||
add_custom_target(${AKERR_COVERAGE_TARGET}
|
||||
add_custom_target(coverage
|
||||
COMMAND ${Python3_EXECUTABLE}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/scripts/coverage.py
|
||||
--source-root ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
@@ -384,6 +377,7 @@ if(Python3_FOUND)
|
||||
)
|
||||
endif()
|
||||
|
||||
set(main_lib_dest "lib/my_library-${MY_LIBRARY_VERSION}")
|
||||
install(TARGETS akerror
|
||||
EXPORT akerrorTargets
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
@@ -407,17 +401,8 @@ configure_package_config_file(
|
||||
INSTALL_DESTINATION ${akerror_install_cmakedir}
|
||||
)
|
||||
|
||||
# The SOVERSION is the project major version, so packages with the same major
|
||||
# are ABI-compatible and a different major must be rejected.
|
||||
write_basic_package_version_file(
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/akerrorConfigVersion.cmake"
|
||||
VERSION ${PROJECT_VERSION}
|
||||
COMPATIBILITY SameMajorVersion
|
||||
)
|
||||
|
||||
install(FILES
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/akerrorConfig.cmake"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/akerrorConfigVersion.cmake"
|
||||
DESTINATION ${akerror_install_cmakedir}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user