Add package version
This commit is contained in:
@@ -1541,6 +1541,7 @@ set(HDRS
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(VERSION 0.0.1)
|
||||||
include(PreTarget.cmake OPTIONAL)
|
include(PreTarget.cmake OPTIONAL)
|
||||||
|
|
||||||
# Add library with project file with project name as library name
|
# Add library with project file with project name as library name
|
||||||
@@ -1576,7 +1577,7 @@ else()
|
|||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
write_basic_package_version_file(
|
write_basic_package_version_file(
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}ConfigVersion.cmake"
|
"${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}ConfigVersion.cmake"
|
||||||
VERSION 0.0.1
|
VERSION "${VERSION}"
|
||||||
COMPATIBILITY AnyNewerVersion
|
COMPATIBILITY AnyNewerVersion
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
set(VERSION 0.0.1)
|
||||||
|
|
||||||
# config.h checks
|
# config.h checks
|
||||||
include(ConfigureChecks.cmake)
|
include(ConfigureChecks.cmake)
|
||||||
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||||
|
|||||||
Reference in New Issue
Block a user