mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
- use version.C.in file instead of a simple copy
- generate lyx2lyx_version.py git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15388 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0d449056ef
commit
97efe6289f
@ -11,6 +11,9 @@ set (EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
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)
|
||||
@ -102,6 +105,10 @@ else(MSVC)
|
||||
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}
|
||||
${TOP_SRC_DIR}/src
|
||||
|
@ -16,7 +16,7 @@ add_subdirectory(support)
|
||||
#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)
|
||||
|
@ -1,21 +0,0 @@
|
||||
/* -*- 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@";
|
Loading…
Reference in New Issue
Block a user