summaryrefslogtreecommitdiff
path: root/app/help/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'app/help/CMakeLists.txt')
-rw-r--r--app/help/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/help/CMakeLists.txt b/app/help/CMakeLists.txt
index 2b7efa7..34c8d33 100644
--- a/app/help/CMakeLists.txt
+++ b/app/help/CMakeLists.txt
@@ -1,9 +1,8 @@
PROJECT(help)
-ADD_EXECUTABLE(genhelp genhelp.c)
+ADD_EXECUTABLE(genhelp genhelp.c cJSON.c cJSON.h)
ADD_EXECUTABLE(genmessages genmessages.c)
-GET_TARGET_PROPERTY(genmessages_EXE genmessages LOCATION)
IF(XTRKCAD_USE_GETTEXT)
SET(GENMESSAGES_OPTS "-i18n")
@@ -14,7 +13,7 @@ ENDIF(XTRKCAD_USE_GETTEXT)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/messages.h ${CMAKE_CURRENT_BINARY_DIR}/messages.but
DEPENDS genmessages ${CMAKE_CURRENT_SOURCE_DIR}/messages.in
- COMMAND ${genmessages_EXE} ${GENMESSAGES_OPTS} ${CMAKE_CURRENT_SOURCE_DIR}/messages.in ${CMAKE_CURRENT_BINARY_DIR}/messages.but
+ COMMAND genmessages ${GENMESSAGES_OPTS} ${CMAKE_CURRENT_SOURCE_DIR}/messages.in ${CMAKE_CURRENT_BINARY_DIR}/messages.but
)
ADD_CUSTOM_TARGET(Help ALL