Skip to content

Commit

Permalink
CMake: add missing BUildConfig and Version headers in the install
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed May 17, 2024
1 parent 08e5e56 commit 1f800cc
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/osgEarth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,21 @@ endif()
message(STATUS "Building ${LIB_NAME} as a ${OSGEARTH_DYNAMIC_OR_STATIC} library")


# Generate the Version header.
set(OSGEARTH_VERSION_HEADER "${OSGEARTH_BUILDTIME_INCLUDE_DIR}/osgEarth/Version")
message(STATUS "Creating ${OSGEARTH_VERSION_HEADER}")
configure_file(Version.in ${OSGEARTH_VERSION_HEADER})

# Generate the BuildConfig header.
set(OSGEARTH_BUILDCONFIG_HEADER "${OSGEARTH_BUILDTIME_INCLUDE_DIR}/osgEarth/BuildConfig")
message(STATUS "Creating ${OSGEARTH_BUILDCONFIG_HEADER}")
configure_file(BuildConfig.in ${OSGEARTH_BUILDCONFIG_HEADER})



add_osgearth_library(
TARGET ${LIB_NAME}
PUBLIC_HEADERS ${TARGET_H}
PUBLIC_HEADERS ${TARGET_H} ${OSGEARTH_VERSION_HEADER} ${OSGEARTH_BUILDCONFIG_HEADER}
IMGUI_HEADERS ${TARGET_H_IMGUI}
SOURCES ${TARGET_SRC}
SHADERS ${TARGET_GLSL}
Expand Down Expand Up @@ -938,17 +950,3 @@ else()
${SSL_EAY_RELEASE} ${LIB_EAY_RELEASE} ${TIFF_LIBRARY} ${PROJ4_LIBRARY} ${PNG_LIBRARY} ${JPEG_LIBRARY})
endif()



# Files generated from templates ..................................

# Generate the Version header.
set(OSGEARTH_VERSION_HEADER "${OSGEARTH_BUILDTIME_INCLUDE_DIR}/osgEarth/Version")
message(STATUS "Creating ${OSGEARTH_VERSION_HEADER}")
configure_file(Version.in ${OSGEARTH_VERSION_HEADER})

# Generate the BuildConfig header.
set(OSGEARTH_BUILDCONFIG_HEADER "${OSGEARTH_BUILDTIME_INCLUDE_DIR}/osgEarth/BuildConfig")
message(STATUS "Creating ${OSGEARTH_BUILDCONFIG_HEADER}")
configure_file(BuildConfig.in ${OSGEARTH_BUILDCONFIG_HEADER})

0 comments on commit 1f800cc

Please sign in to comment.