diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2264e812..e20ec309 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,10 @@ SET(VERSION 0.0.29) # where to look for cmake modules SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules) +FIND_PACKAGE(Gettext) + OPTION(WITH_OPENGL "Enable OpenGL support" ON) +OPTION(ENABLE_NLS "Enable building of tranlations" ON) IF (WIN32) SET(PKG_DATADIR ".") @@ -21,6 +24,9 @@ ENDIF (WIN32) ADD_SUBDIRECTORY(data) ADD_SUBDIRECTORY(src) -ADD_SUBDIRECTORY(po) + +IF (GETTEXT_FOUND AND ENABLE_NLS) + ADD_SUBDIRECTORY(po) +ENDIF() INSTALL(FILES tmw.desktop DESTINATION share/applications) |