myx-cmake/MyxCMake/functions/MyxCMakeGeneratePrivateConfigHeader.cmake

15 lines
572 B
CMake
Raw Permalink Normal View History

2021-12-08 11:32:04 +00:00
function(myx_cmake_generate_private_config_header)
2021-12-09 11:41:26 +00:00
include(MyxCMakeLargeFiles)
2021-12-08 11:32:04 +00:00
myx_cmake_test_large_files(HAVE_LARGEFILES)
2021-12-22 13:27:32 +00:00
set(output_file ${CMAKE_BINARY_DIR}/include/myx_cmake_private_config_p.hpp)
2021-12-08 11:32:04 +00:00
if(MYX_CMAKE_GENERATED_HEADERS_PATH)
2021-12-22 13:27:32 +00:00
set(output_file ${MYX_CMAKE_GENERATED_HEADERS_PATH}/myx_cmake_private_config_p.hpp)
2021-12-08 11:32:04 +00:00
elseif(ARGV0)
set(output_file ${ARGV0})
endif()
get_property(PROJECT_VERSION_INT GLOBAL PROPERTY PROJECT_VERSION_INT)
2021-12-09 11:41:26 +00:00
configure_file(${MYX_CMAKE_FUNCTIONS_DIR}/hpp/myx_cmake_private_config.hpp.in ${output_file})
2021-12-08 11:32:04 +00:00
endfunction()