root/simulator/trunk/src/internationalization/CMakeLists.txt

Revision 1277, 3.3 kB (checked in by sehenley, 11 months ago)

Added some WBS Properties.

  • Property WBS set to 1.4.4.6
  • Property svn:keywords set to
    Url
    Rev
    Author
    Date
    Id
Line 
1 #    OSRail -- a network enabled railroad operations simulator and utilities
2 #    Copyright (C) 2007,2008,2009 Samuel E. Henley sehenley@comcast.net
3 #
4 #    This program is free software; you can redistribute it and/or modify
5 #    it under the terms of the GNU General Public License as published by
6 #    the Free Software Foundation; either version 2 of the License, or
7 #    (at your option) any later version.
8 #
9 #    This program is distributed in the hope that it will be useful,
10 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 #    GNU General Public License for more details.
13 #
14 #    You should have received a copy of the GNU General Public License along
15 #    with this program; if not, write to the Free Software Foundation, Inc.,
16 #    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 #
18 #
19 #----------------------------------------------------------------------
20 ## \file
21 ## \page internationalizationcmakelists Internationalization CMakeLists.txt File.
22 ## This is the cmakelist.txt that builds the language files.
23 ## \par Builds
24 ## - All Language files (po,mo)
25 ## \par Scripts
26 ##  - \ref i18n.cmd
27 ##
28 #----------------------------------------------------------------------
29
30 PROJECT( INTERNATIONALIZATION  )
31 CMAKE_MINIMUM_REQUIRED( VERSION 2.6.3 )
32
33 # Get Working Directory trunk tag branch
34 IF( NOT SIMULATOR_WORKING_DIRECTORY )
35
36     STRING( REGEX REPLACE "/src/internationalization/?$" ""
37         SIMULATOR_WORKING_DIRECTORY
38         ${INTERNATIONALIZATION_SOURCE_DIR}
39     )
40
41     FIND_PATH( SIMULATOR_WORKING_DIRECTORY
42             Modules/prerequisite.cmake
43             ${SIMULATOR_WORKING_DIRECTORY}
44             DOC "The working directory is trunk, or a tag or a branch name."
45     )
46
47     STRING( REGEX REPLACE "/internationalization/?$" "/bin"
48         SIMULATOR_WORKING_BINARY_DIRECTORY
49         ${INTERNATIONALIZATION_BINARY_DIR}
50     )
51
52
53     INCLUDE( ${SIMULATOR_WORKING_DIRECTORY}/Modules/prerequisite.cmake )
54
55 ENDIF( NOT SIMULATOR_WORKING_DIRECTORY )
56
57
58
59 #-------------------------------------------------------------------------
60 # Internationalization
61 #-------------------------------------------------------------------------
62
63 FILE( TO_NATIVE_PATH ${SIMULATOR_WORKING_BINARY_DIRECTORY} ONE )
64 FILE( TO_NATIVE_PATH ${GNU_GETTEXT_UTILITIES_PATH} TWO )
65 FILE( TO_NATIVE_PATH ${OSRAILWXWIDGETS_WXRC_EXECUTABLE} THREE )
66 FILE( TO_NATIVE_PATH ${SIMULATOR_WORKING_DIRECTORY} FOUR )
67
68 IF( UNIX )
69
70     ADD_CUSTOM_TARGET( INTERNATIONALIZATION
71         ${INTERNATIONALIZATION_SOURCE_DIR}/i18n ${ONE} ${TWO} ${THREE} ${FOUR}
72     )
73
74 ELSE( UNIX )
75
76     ADD_CUSTOM_TARGET( INTERNATIONALIZATION
77         ${INTERNATIONALIZATION_SOURCE_DIR}/i18n.cmd ${ONE} ${TWO} ${THREE} ${FOUR}
78     )
79
80 ENDIF( UNIX )
81
82 ## \note CodeBlocksGenerator CMake Target Property CODEBLOCKS_CREATE_WORKSPACE will
83 ## generate a workspace for a single target in the targets binary directory.
84 ##
85
86 SET_PROPERTY( TARGET INTERNATIONALIZATION
87               PROPERTY CODEBLOCKS_CREATE_WORKSPACE ON
88 )
89
90 ## \note CodeBlocksGenerator CMake Source File Property CODEBLOCKS_WORKSPACE_EXCLUDE_TARGET will
91 ## remove the project files for a target from the workspace file.
92 ##
93
94 SET_PROPERTY( TARGET INTERNATIONALIZATION
95               PROPERTY CODEBLOCKS_WORKSPACE_EXCLUDE_TARGET ON
96 )
97 #-------------------------------------------------------------------------
Note: See TracBrowser for help on using the browser.