Update build files.
Don't include install targets when this is built with FetchContent.
This commit is contained in:
parent
7cb39680c1
commit
b28199553f
|
@ -14,3 +14,4 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/klib)
|
|||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man DESTINATION share)
|
||||
|
||||
endif ()
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ write_basic_package_version_file(
|
|||
COMPATIBILITY AnyNewerVersion
|
||||
)
|
||||
|
||||
if (${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
|
||||
add_custom_target(cloc
|
||||
COMMAND cloc ${SOURCE_FILES} ${HEADER_FILES}
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
|
||||
|
@ -96,3 +97,4 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/klib.pc DESTINATION lib/pkgconfig)
|
|||
|
||||
include(CMakePack.txt)
|
||||
include(CMakeDocs.txt)
|
||||
endif()
|
||||
|
|
|
@ -32,4 +32,5 @@ set(CPACK_SOURCE_IGNORE_FILES
|
|||
/.*build.*)
|
||||
|
||||
include (CPack)
|
||||
add_custom_target(package_docs DEPENDS klib_docs package package_source)
|
||||
add_custom_target(package_docs DEPENDS klib_docs package package_source)
|
||||
|
||||
|
|
Loading…
Reference in New Issue