From 08ad5d19d52aad5b6cd91078639d16274f4afff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sat, 27 Jan 2007 12:29:15 +0000 Subject: [PATCH] cmake files for tex2lyx git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16879 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/src/CMakeLists.txt | 2 +- development/cmake/src/tex2lyx/CMakeLists.txt | 73 +++++++++++--------- 2 files changed, 43 insertions(+), 32 deletions(-) diff --git a/development/cmake/src/CMakeLists.txt b/development/cmake/src/CMakeLists.txt index 71b4c09b8e..fcb5fc3912 100644 --- a/development/cmake/src/CMakeLists.txt +++ b/development/cmake/src/CMakeLists.txt @@ -13,7 +13,7 @@ add_subdirectory(graphics) add_subdirectory(insets) add_subdirectory(mathed) add_subdirectory(support) -#add_subdirectory(tex2lyx) +add_subdirectory(tex2lyx) configure_file(${TOP_SRC_DIR}/src/version.C.in ${CMAKE_CURRENT_BINARY_DIR}/version.C) diff --git a/development/cmake/src/tex2lyx/CMakeLists.txt b/development/cmake/src/tex2lyx/CMakeLists.txt index 476e1b3e6b..5731d51684 100644 --- a/development/cmake/src/tex2lyx/CMakeLists.txt +++ b/development/cmake/src/tex2lyx/CMakeLists.txt @@ -7,45 +7,56 @@ project(tex2lyx) + set(LINKED_FILES - ../FloatList.C - ../Floating.C - ../counters.C - ../lyxlayout.h - ../lyxlayout.C - ../lyxtextclass.C - ../lyxtextclass.h - ../lyxlex.C - ../lyxlex_pimpl.C + ${TOP_SRC_DIR}/src/FloatList.C + ${TOP_SRC_DIR}/src/Floating.C + ${TOP_SRC_DIR}/src/counters.C + ${TOP_SRC_DIR}/src/lyxlayout.h + ${TOP_SRC_DIR}/src/lyxlayout.C + ${TOP_SRC_DIR}/src/lyxtextclass.C + ${TOP_SRC_DIR}/src/lyxtextclass.h + ${TOP_SRC_DIR}/src/lyxlex.C + ${TOP_SRC_DIR}/src/lyxlex_pimpl.C ) set(tex2lyx_sources - ${LINKED_FILES} - boost.C - context.C - gettext.C - lengthcommon.C - lyxfont.C - texparser.C - tex2lyx.C - preamble.C - math.C - table.C - text.C + ${TOP_SRC_DIR}/src/tex2lyx/Spacing.h + ${TOP_SRC_DIR}/src/tex2lyx/boost.C + ${TOP_SRC_DIR}/src/tex2lyx/context.C + ${TOP_SRC_DIR}/src/tex2lyx/ + ${TOP_SRC_DIR}/src/tex2lyx/context.h + ${TOP_SRC_DIR}/src/tex2lyx/gettext.C + ${TOP_SRC_DIR}/src/tex2lyx/lengthcommon.C + ${TOP_SRC_DIR}/src/tex2lyx/lyxfont.C + ${TOP_SRC_DIR}/src/tex2lyx/lyxfont.h + ${TOP_SRC_DIR}/src/tex2lyx/texparser.C + ${TOP_SRC_DIR}/src/tex2lyx/texparser.h + ${TOP_SRC_DIR}/src/tex2lyx/tex2lyx.C + ${TOP_SRC_DIR}/src/tex2lyx/tex2lyx.h + ${TOP_SRC_DIR}/src/tex2lyx/preamble.C + ${TOP_SRC_DIR}/src/tex2lyx/math.C + ${TOP_SRC_DIR}/src/tex2lyx/table.C + ${TOP_SRC_DIR}/src/tex2lyx/text.C ) -set(tex2lyx_headers - Spacing.h - context.h - gettext.h - lyxfont.h - texparser.h - tex2lyx.h -) +include_directories(BEFORE ${TOP_SRC_DIR}/src/tex2lyx) -add_executable(tex2lyx ${tex2lyx_SRCS}) -target_link_libraries(tex2lyx support ) +add_executable(tex2lyx ${tex2lyx_sources} ${LINKED_FILES}) + +target_link_libraries(tex2lyx + support + boost_iostreams + boost_filesystem + boost_regex + ${QT_QTCORE_LIBRARY} + intl + ) + +if(WIN32) + target_link_libraries(tex2lyx shlwapi) +endif(WIN32) project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)