summaryrefslogtreecommitdiff
path: root/app/help/CMakeLists.txt
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 16:52:56 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 16:52:56 +0100
commit7b358424ebad9349421acd533c2fa1cbf6cf3e3e (patch)
tree686678532eefed525c242fd214d0cfb2914726c5 /app/help/CMakeLists.txt
Initial import of xtrkcad version 1:4.0.2-2
Diffstat (limited to 'app/help/CMakeLists.txt')
-rw-r--r--app/help/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/help/CMakeLists.txt b/app/help/CMakeLists.txt
new file mode 100644
index 0000000..2b7efa7
--- /dev/null
+++ b/app/help/CMakeLists.txt
@@ -0,0 +1,27 @@
+PROJECT(help)
+
+ADD_EXECUTABLE(genhelp genhelp.c)
+
+ADD_EXECUTABLE(genmessages genmessages.c)
+GET_TARGET_PROPERTY(genmessages_EXE genmessages LOCATION)
+
+IF(XTRKCAD_USE_GETTEXT)
+ SET(GENMESSAGES_OPTS "-i18n")
+ELSE(XTRKCAD_USE_GETTEXT)
+ SET(GENMESSAGES_OPTS "")
+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
+ )
+
+ADD_CUSTOM_TARGET(Help ALL
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/messages.h ${CMAKE_CURRENT_BINARY_DIR}/messages.but
+ )
+
+INSTALL(
+ FILES xtrkcad.tip
+ DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}
+ )