#------------------------------------------------------------------- # This file is part of the CMake build system for ARToolKit # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- include(PreprocessorUtils) macro(artoolkit_get_version HEADER) file(READ ${HEADER} TEMP_VAR_CONTENTS) get_preprocessor_entry(TEMP_VAR_CONTENTS AR_HEADER_VERSION_MAJOR ARToolKit_VERSION_MAJOR) get_preprocessor_entry(TEMP_VAR_CONTENTS AR_HEADER_VERSION_MINOR ARToolKit_VERSION_MINOR) get_preprocessor_entry(TEMP_VAR_CONTENTS AR_HEADER_VERSION_TINY ARToolKit_VERSION_TINY) set(ARToolKit_VERSION "${ARToolKit_VERSION_MAJOR}.${ARToolKit_VERSION_MINOR}.${ARToolKit_VERSION_TINY}") endmacro()