PROJECT(feierabend VERSION 0.0.1)
+CONFIGURE_FILE(config.h.in config.h)
+
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
+
ADD_EXECUTABLE(${PROJECT_NAME}
main.c
time_format.c
--- /dev/null
+#define PROJECT_VERSION "@PROJECT_VERSION@"
\ No newline at end of file
#include "time_format.h"
#include "worktime.h"
#include "break.h"
+#include "config.h"
#define ONE_HOUR 3600
char weekday[11];
char timestr[7];
+ printf("Version: %s\n\n", PROJECT_VERSION);
+
time(&begin);
localtime_r(&begin, &begin_tm);
begin_tm.tm_hour = atoi(argv[1]);