set(PACKAGE lyx)
set(PACKAGE_VERSION 1.5.0svn)
+set(LYX_DATE "not released yet")
+#TODO
+set(VERSION_INFO "CMake Build")
if(WIN32)
set(USE_WINDOWS_PACKAGING 1)
add_definitions(-DBOOST_USER_CONFIG="<config.h>")
endif(MSVC)
+
+#TODO: insource is not the best place
+configure_file(${TOP_SRC_DIR}/lib/lyx2lyx/lyx2lyx_version.py.in
+ ${TOP_SRC_DIR}/lib/lyx2lyx/lyx2lyx_version.py)
include_directories(
${CMAKE_BINARY_DIR}
#add_subdirectory(tex2lyx)
-configure_file(version.C.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.C)
+configure_file(${TOP_SRC_DIR}/src/version.C.in ${CMAKE_CURRENT_BINARY_DIR}/version.C)
file(GLOB lyx_sources ${TOP_SRC_DIR}/src/*.C)
file(GLOB lyx_headers ${TOP_SRC_DIR}/src/*.h)
+++ /dev/null
-/* -*- C++ -*- */
-/**
- * \file version.C
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author Jean-Marc Lasgouttes
- *
- * Full author contact details are available in file CREDITS.
- *
- * Warning! This file is autogenerated from version.C.in.
- * All changes to this file will be lost.
- */
-
-///
-char const * lyx_version = "@PACKAGE_VERSION@";
-///
-char const * lyx_release_date = "Thu, Jan 30, 2003";
-
-/// This is the version information shown by 'lyx -version'
-char const * lyx_version_info = "@VERSION_INFO@";