summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorDidier 'OdyX' Raboud <didier@raboud.com>2013-10-30 16:38:58 +0100
committerDidier 'OdyX' Raboud <didier@raboud.com>2013-11-08 10:01:24 +0100
commitd8762fdd8dcfcf9ac62704547c669be15e9c74bc (patch)
treefa5d435bac40031d452aa3ea02b40f3029f63284 /desktop
parentbf0c0227ecefa491937a982cff6ab9cf60460ada (diff)
downloadcolobot-d8762fdd8dcfcf9ac62704547c669be15e9c74bc.tar.gz
colobot-d8762fdd8dcfcf9ac62704547c669be15e9c74bc.tar.bz2
colobot-d8762fdd8dcfcf9ac62704547c669be15e9c74bc.zip
Reorder desktop/CMakeLists.txt for more platform-specific clarity
Diffstat (limited to 'desktop')
-rw-r--r--desktop/CMakeLists.txt34
1 files changed, 17 insertions, 17 deletions
diff --git a/desktop/CMakeLists.txt b/desktop/CMakeLists.txt
index 7241757..f7aa5f1 100644
--- a/desktop/CMakeLists.txt
+++ b/desktop/CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 2.8)
-if(NOT PLATFORM_WINDOWS)
+if(PLATFORM_LINUX)
# Install Desktop Entry file
set(COLOBOT_DESKTOP_FILE colobot.desktop)
add_custom_command(
@@ -38,12 +38,22 @@ if(NOT PLATFORM_WINDOWS)
endforeach()
endif()
+ # Translate translatable material
+ find_program(PO4A po4a)
+ if(PO4A)
+ add_custom_target(desktop_po4a
+ COMMAND ${PO4A} po4a.cfg
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ )
+ add_dependencies(desktopfile desktop_po4a)
+ endif()
+
# Create manpage from pod-formatted file
find_program(POD2MAN pod2man)
if(POD2MAN)
set(COLOBOT_MANPAGE_SECTION 6)
- macro(podman)
+ macro(podman)
cmake_parse_arguments(PM "" "PODFILE;LOCALE;" "" ${ARGN})
if(PM_LOCALE)
# This copes with the fact that english has no "/LANG" in the paths and filenames.
@@ -71,19 +81,8 @@ if(NOT PLATFORM_WINDOWS)
# Create the english manpage
podman(PODFILE colobot.pod)
- endif()
-
- # Translate translatable material
- find_program(PO4A po4a)
-
- if(PO4A)
- add_custom_target(desktop_po4a
- COMMAND ${PO4A} po4a.cfg
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- )
- add_dependencies(desktopfile desktop_po4a)
-
- if(POD2MAN)
+ if(PO4A)
+ # Translate the manpage to other languages
add_custom_target(man_po4a
COMMAND ${PO4A} po4a.cfg
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
@@ -97,8 +96,9 @@ if(NOT PLATFORM_WINDOWS)
endforeach()
endif()
endif()
+endif(PLATFORM_LINUX)
-else() # if(NOT PLATFORM_WINDOWS)
+if(PLATFORM_WINDOWS)
set(COLOBOT_VERSION_4COMMAS "${COLOBOT_VERSION_MAJOR},${COLOBOT_VERSION_MINOR},${COLOBOT_VERSION_REVISION},0")
configure_file(colobot.rc.cmake ${CMAKE_CURRENT_BINARY_DIR}/colobot.rc)
-endif()
+endif(PLATFORM_WINDOWS)