]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/CMakeLists.txt
Scons: libintl also needs /MD option
[lyx.git] / development / cmake / CMakeLists.txt
index a89b0017717f6b2732e9bfcd4c723dd814b664a8..ec7438de491635680c2bbd48112914b056ac03a7 100644 (file)
@@ -1,8 +1,31 @@
+# This file is part of LyX, the document processor.
+# Licence details can be found in the file COPYING.
+#
+# Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
+#
+
 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
 
+set (EXECUTABLE_OUTPUT_PATH  ${CMAKE_BINARY_DIR}/bin)
+
+set(PACKAGE lyx)
+set(PACKAGE_VERSION 1.5.0svn)
+
+if(WIN32)
+       set(USE_WINDOWS_PACKAGING 1)
+else(WIN32)
+       set(USE_POSIX_PACKAGING 1)
+endif(WIN32)
+
+if(NOT GROUP_CODE)
+       #set(GROUP_CODE "The Golden Code")
+       set(GROUP_CODE flat)
+endif(NOT GROUP_CODE)
+
 include(LyXPaths)
 include(LyXMacros)
+include(ProjectSourceGroup)
 
 if(release)
        set(CMAKE_BUILD_TYPE Release)
@@ -41,10 +64,12 @@ endif(all OR aspell)
 set(aspell)
 
 message("")
-if(nls)
+if(nls OR all)
        add_definitions(-DENABLE_NLS=1)
-       message("----- Building with ENABLE_NLS and HAVE_ICONV")
-endif(nls)
+       message("----- Building with ENABLE_NLS")
+else(nls OR all)       
+       message("----- No nls, to enable use -Dnls=1")
+endif(nls OR all)
 set(nls)
 if(ASPELL_FOUND)
        add_definitions(-DUSE_ASPELL=1)