mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01: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 ---- | # ---- Create an installable target ---- | ||||||
| # this allows users to install and find the library via `find_package()`. | # 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( | packageProject( | ||||||
|   NAME ${PROJECT_NAME} |   NAME ${PROJECT_NAME} | ||||||
|  | @ -66,6 +68,6 @@ packageProject( | ||||||
|   BINARY_DIR ${PROJECT_BINARY_DIR} |   BINARY_DIR ${PROJECT_BINARY_DIR} | ||||||
|   INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include |   INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include | ||||||
|   INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION} |   INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION} | ||||||
|   VERSION_HEADER "${LOWERCASE_PROJECT_NAME}/version.h" |   VERSION_HEADER "${VERSION_HEADER_LOCATION}" | ||||||
|   DEPENDENCIES "" |   DEPENDENCIES "" | ||||||
| ) | ) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue