#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # 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(scol_get_version HEADER) file(READ ${HEADER} TEMP_VAR_CONTENTS) get_preprocessor_entry(TEMP_VAR_CONTENTS PREFSE Scol_VERSION_MAJOR) get_preprocessor_entry(TEMP_VAR_CONTENTS SUFFSE Scol_VERSION_MINOR) set(Scol_VERSION "${Scol_VERSION_MAJOR}${Scol_VERSION_MINOR}") endmacro()