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:
parent
a7e9c9d12e
commit
1ba0c23c53
1 changed files with 4 additions and 2 deletions
|
@ -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 ""
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue