diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..60fa310 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 2.7) + +# Extract GIT revision for versioning +execute_process(COMMAND + git describe --dirty + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" + OUTPUT_VARIABLE GIT_SHA1 + ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) + +execute_process(COMMAND + git log -1 --format=%ad --date=local + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" + OUTPUT_VARIABLE GIT_DATE + ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) + +configure_file(verbena.in verbena) +INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/verbena DESTINATION bin) +