summaryrefslogtreecommitdiff
path: root/app/help/CMakeLists.txt
blob: 34c8d33e097ad943427d9eb229154871ef73b5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PROJECT(help)

ADD_EXECUTABLE(genhelp genhelp.c cJSON.c cJSON.h)

ADD_EXECUTABLE(genmessages genmessages.c)

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 ${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}
	)