1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

add comment for version header location

This commit is contained in:
Lars Melchior 2020-06-03 16:24:21 +02:00
parent a7e9c9d12e
commit 1ba0c23c53

View file

@ -58,7 +58,9 @@ target_include_directories(Greeter
# ---- Create an installable target ----
# this allows users to install and find the library via `find_package()`.
string(TOLOWER ${PROJECT_NAME} LOWERCASE_PROJECT_NAME)
# the location where the project's version header will be placed
# should match the project's regular header paths
string(TOLOWER ${PROJECT_NAME}/version.h VERSION_HEADER_LOCATION)
packageProject(
NAME ${PROJECT_NAME}
@ -66,6 +68,6 @@ packageProject(
BINARY_DIR ${PROJECT_BINARY_DIR}
INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include
INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION}
VERSION_HEADER "${LOWERCASE_PROJECT_NAME}/version.h"
VERSION_HEADER "${VERSION_HEADER_LOCATION}"
DEPENDENCIES ""
)