#
-#
-# Open Issues:
-# - none?
-#
-
-
## Project name to use as command prefix
PROJECT(SUPERTUX)
FOREACH(SUPERTUX_LEVEL_DIR ${SUPERTUX_LEVEL_DIRS})
FILE(GLOB SUPERTUX_LEVELS RELATIVE ${SUPERTUX_SOURCE_DIR} ${SUPERTUX_LEVEL_DIR}/*.stl ${SUPERTUX_LEVEL_DIR}/*.stwm ${SUPERTUX_LEVEL_DIR}/*.txt)
+ ## Do not add target if SUPERTUX_LEVELS is empty. This is needed for cmake <=2.4
+ IF(SUPERTUX_LEVELS)
SET(MESSAGES_POT_FILE ${SUPERTUX_SOURCE_DIR}/${SUPERTUX_LEVEL_DIR}/messages.pot)
ADD_CUSTOM_COMMAND(
OUTPUT ${MESSAGES_POT_FILE}
COMMENT "Generating POT file ${MESSAGES_POT_FILE}"
)
LIST(APPEND MESSAGES_POT_FILES ${MESSAGES_POT_FILE})
+ ENDIF(SUPERTUX_LEVELS)
ENDFOREACH(SUPERTUX_LEVEL_DIR)