version.cmake (view raw)
1if(NOT ${BINARY_NAME}_SOURCE_DIR) 2 set(${BINARY_NAME}_SOURCE_DIR ${CMAKE_SOURCE_DIR}) 3endif() 4 5configure_file("${${BINARY_NAME}_SOURCE_DIR}/src/util/version.c.in" "${CMAKE_CURRENT_BINARY_DIR}/version.c")