This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) |
| 2 |
|
| 3 |
PROJECT(TMW) |
| 4 |
|
| 5 |
SET(VERSION 0.0.29.1) |
| 6 |
|
| 7 |
# where to look for cmake modules |
| 8 |
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules) |
| 9 |
|
| 10 |
FIND_PACKAGE(Gettext) |
| 11 |
|
| 12 |
OPTION(WITH_OPENGL "Enable OpenGL support" ON) |
| 13 |
OPTION(ENABLE_NLS "Enable building of tranlations" ON) |
| 14 |
|
| 15 |
IF (WIN32) |
| 16 |
SET(PKG_DATADIR ".") |
| 17 |
SET(PKG_BINDIR ".") |
| 18 |
SET(LOCALEDIR ".") |
| 19 |
ELSE (WIN32) |
| 20 |
SET(PKG_DATADIR ${CMAKE_INSTALL_PREFIX}/share/tmw) |
| 21 |
SET(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale) |
| 22 |
SET(PKG_BINDIR ${CMAKE_INSTALL_PREFIX}/bin) |
| 23 |
ENDIF (WIN32) |
| 24 |
|
| 25 |
ADD_SUBDIRECTORY(data) |
| 26 |
ADD_SUBDIRECTORY(src) |
| 27 |
|
| 28 |
IF (GETTEXT_FOUND AND ENABLE_NLS) |
| 29 |
ADD_SUBDIRECTORY(po) |
| 30 |
ENDIF() |
| 31 |
|
| 32 |
INSTALL(FILES tmw.desktop DESTINATION share/applications) |