File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ # =============================================================================
2+ # Generate Build Information Header (Including Information Collection)
3+ # ==============================================================================
4+
5+ include_guard (GLOBAL )
6+
7+ function (setup_build_info)
8+ message (STATUS "Setting up build information..." )
9+
10+ include (cmake/CollectBuildInfoVars.cmake)
11+
12+ set (BUILD_INFO_TEMPLATE "${CMAKE_SOURCE_DIR} /source/source_io/build_info.h.in" )
13+ set (BUILD_INFO_OUTPUT "${CMAKE_BINARY_DIR} /source/source_io/build_info.h" )
14+
15+ configure_file (
16+ ${BUILD_INFO_TEMPLATE}
17+ ${BUILD_INFO_OUTPUT}
18+ @ONLY
19+ )
20+
21+ add_library (BuildInfo::Headers INTERFACE IMPORTED GLOBAL )
22+ target_include_directories (BuildInfo::Headers
23+ INTERFACE
24+ ${CMAKE_BINARY_DIR} /source /source_io
25+ )
26+
27+ message (STATUS "Build info header configured: ${BUILD_INFO_OUTPUT} " )
28+ endfunction ()
You can’t perform that action at this time.
0 commit comments