project(a) cmake_minimum_required(VERSION 2.8) add_executable( a a.cxx ) SET_TARGET_PROPERTIES( a PROPERTIES VERSION "1.2.3")