mgba/version.cmake
2015-05-15 08:56:28 -07:00

6 lines
204 B
CMake

if(NOT ${BINARY_NAME}_SOURCE_DIR)
set(${BINARY_NAME}_SOURCE_DIR ${CMAKE_SOURCE_DIR})
endif()
configure_file("${${BINARY_NAME}_SOURCE_DIR}/src/util/version.c.in" "${CMAKE_CURRENT_BINARY_DIR}/version.c")