Browse code

c/f: fix APP_NAME for CMake build system

Stefan Sayer authored on 27/02/2014 14:40:31
Showing 3 changed files
... ...
@@ -27,6 +27,8 @@ ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/.git)
27 27
 
28 28
 MESSAGE(STATUS "Configuring ${CMAKE_PROJECT_NAME} v. ${SEMS_VERSION}")
29 29
 
30
+SET(SEMS_APP_NAME "sems")
31
+
30 32
 IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE)
31 33
 	message(FATAL_ERROR "In-source builds are not allowed.
32 34
 CMake would overwrite all makefiles distributed with SEMS.
... ...
@@ -28,6 +28,7 @@
28 28
 #include <ctype.h>
29 29
 #include <stdio.h>
30 30
 #include <unistd.h>
31
+#include "sems.h"
31 32
 
32 33
 #ifndef DISABLE_SYSLOG_LOG
33 34
 # include <syslog.h>
... ...
@@ -32,6 +32,8 @@
32 32
 #define OS "${CMAKE_SYSTEM_NAME}"
33 33
 #define ARCH "${CMAKE_SYSTEM_PROCESSOR}"
34 34
 
35
+#define SEMS_APP_NAME "${SEMS_APP_NAME}"
36
+
35 37
 #define CONFIG_FILE         "${SEMS_CFG_PREFIX}/etc/sems/sems.conf"
36 38
 #define MOD_CFG_PATH        "${SEMS_CFG_PREFIX}/etc/sems/etc/"
37 39
 #define ANNOUNCE_PATH       "${SEMS_AUDIO_PREFIX}/sems/audio"