~andreas-strasser/lask/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Andreas Strasser
  • Date: 2015-12-13 11:39:40 UTC
  • Revision ID: name@example.com-20151213113940-dausvafv1n9pvvzt
- Internationalisierung
- Englische Übersetzung
- Felder haben jetzt eine Vorfrucht
- Manpage erstellt
- Mittelverwaltung verbessert

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#
18
18
 
19
19
cmake_minimum_required(VERSION "2.8.4")
20
 
 
21
20
include("${CMAKE_SOURCE_DIR}/cmake/project.cmake")
22
21
include("${CMAKE_SOURCE_DIR}/cmake/Common.cmake")
 
22
include("${CMAKE_SOURCE_DIR}/cmake/Gettext.cmake")
23
23
 
24
24
if(CMAKE_MAJOR_VERSION GREATER "2")
25
25
  cmake_policy(SET CMP0048 NEW)
51
51
 
52
52
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/vala")
53
53
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
54
 
 
55
 
 
56
 
find_package(Vala "0.20" REQUIRED)
 
54
add_subdirectory(po)
 
55
 
 
56
find_package(Vala "0.22" REQUIRED)
57
57
 
58
58
# Custom library version checks.
59
59
set(definitions)
93
93
# Set common C-macros.
94
94
add_definitions(-DPACKAGE_NAME="${project_name}")
95
95
add_definitions(-DPACKAGE_VERSION="${${project_name}_VERSION}")
96
 
if(project_root)
97
 
  add_definitions(-DGETTEXT_PACKAGE="${project_root}")
98
 
else()
99
 
  add_definitions(-DGETTEXT_PACKAGE="${project_name_lower}")
100
 
endif()
 
96
add_definitions(-DGETTEXT_PACKAGE="lask")
101
97
add_definitions(-DPACKAGE_DATA_DIR="${install_prefix}${datadir}")
102
98
add_definitions(-DPACKAGE_UI_DIR="${install_prefix}${uidir}")
103
99
add_definitions(-DLOCALE_DIR="${install_prefix}${localedir}")
179
175
message("Vala flags:             ${vala_flags}")
180
176
message("GLib version:           ${GLIB2.0_VERSION}")
181
177
message("")
182
 
if(GETTEXT_PACKAGE_NAME)
183
178
  if(GETTEXT_PACKAGE_VERSION)
184
179
    message("Gettext package:        ${GETTEXT_PACKAGE_NAME} (${GETTEXT_PACKAGE_VERSION})")
185
180
  else()
186
 
    message("Gettext package:        ${GETTEXT_PACKAGE_NAME}")
 
181
    message("Gettext package:        ${GETTEXT_PACKAGE}")
187
182
  endif()
188
 
endif()
189
183
if(CMAKE_VERBOSE_MAKEFILE)
190
184
  message("Verbose build:          yes")
191
185
else()