X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=1e0b9c3ef2d3a8ed7ee15fd79baec545e5cf1042;hb=b8648dea168f59b722cd0f16c8557c9c2e44682b;hp=00fe87056a0198f7d484cdd705e95d8e8193f6eb;hpb=794e306c2ef856561ba3fdfc5c6c3334f3194769;p=lyx.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 00fe87056a..1e0b9c3ef2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,8 @@ cmake_minimum_required(VERSION 2.6.4) set(LYX_PROJECT LyX) +enable_testing() + set(LYX_CMAKE_DIR "development/cmake") set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/${LYX_CMAKE_DIR}/modules") @@ -490,6 +492,12 @@ if(LYX_NLS) endif() endif() +if(LYX_EXTERNAL_LIBINTL) + set(intl_link ${LIBINTL_LIBRARIES}) +else() + set(intl_link intl) +endif() + find_package(ICONV REQUIRED) find_package(ZLIB REQUIRED) @@ -673,6 +681,7 @@ else() endif() configure_file(${LYX_CMAKE_DIR}/config.h.cmake ${TOP_BINARY_DIR}/config.h) +configure_file(${LYX_CMAKE_DIR}/lyx_date.h.cmake ${TOP_BINARY_DIR}/lyx_date.h) # Compute qt4-version from ${QTVERSION} if(QTVERSION MATCHES "^([0-9]+)\\.([0-9]+)\\.([0-9]+).*")