]> git.lyx.org Git - features.git/blob - development/cmake/src/tex2lyx/CMakeLists.txt
cmake: remove boost::iostreams from build system
[features.git] / development / cmake / src / tex2lyx / CMakeLists.txt
1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
3 #
4 # Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
5 #
6
7 project(tex2lyx)
8
9 set(LINKED_sources
10         ${TOP_SRC_DIR}/src/FloatList.cpp
11         ${TOP_SRC_DIR}/src/Floating.cpp
12         ${TOP_SRC_DIR}/src/Counters.cpp
13         ${TOP_SRC_DIR}/src/Layout.cpp
14         ${TOP_SRC_DIR}/src/TextClass.cpp
15         ${TOP_SRC_DIR}/src/Lexer.cpp
16         ${TOP_SRC_DIR}/src/Color.cpp)
17
18 set(LINKED_headers
19         ${TOP_SRC_DIR}/src/Layout.h
20         ${TOP_SRC_DIR}/src/TextClass.h)
21
22 set(tex2lyx_sources
23         ${TOP_SRC_DIR}/src/tex2lyx/boost.cpp
24         ${TOP_SRC_DIR}/src/tex2lyx/Context.cpp
25         ${TOP_SRC_DIR}/src/tex2lyx/Font.cpp
26         ${TOP_SRC_DIR}/src/tex2lyx/gettext.cpp
27         ${TOP_SRC_DIR}/src/tex2lyx/lengthcommon.cpp
28         ${TOP_SRC_DIR}/src/tex2lyx/Parser.cpp
29         ${TOP_SRC_DIR}/src/tex2lyx/tex2lyx.cpp
30         ${TOP_SRC_DIR}/src/tex2lyx/preamble.cpp
31         ${TOP_SRC_DIR}/src/tex2lyx/math.cpp
32         ${TOP_SRC_DIR}/src/tex2lyx/table.cpp
33         ${TOP_SRC_DIR}/src/tex2lyx/text.cpp)
34
35 set(tex2lyx_headers
36         ${TOP_SRC_DIR}/src/tex2lyx/Spacing.h
37         ${TOP_SRC_DIR}/src/tex2lyx/Context.h
38         ${TOP_SRC_DIR}/src/tex2lyx/Font.h
39         ${TOP_SRC_DIR}/src/tex2lyx/Parser.h
40         ${TOP_SRC_DIR}/src/tex2lyx/tex2lyx.h)
41
42 include_directories(BEFORE ${TOP_SRC_DIR}/src/tex2lyx
43         ${TOP_SRC_DIR}/src/support/minizip ${ZLIB_INCLUDE_DIR})
44
45 add_definitions(-DTEX2LYX)
46
47 if(NOT MERGE_FILES)
48         add_executable(tex2lyx ${tex2lyx_sources} ${LINKED_sources}
49                 ${tex2lyx_headers} ${LINKED_headers})
50 else()
51         lyx_const_touched_files(_allinone  tex2lyx_sources)
52         lyx_const_touched_files(_allinone_linked  LINKED_sources)
53         add_executable(tex2lyx  ${_allinone_files} ${_allinone_linked_files})
54 endif()
55
56
57 target_link_libraries(tex2lyx  
58         support
59         boost_filesystem
60         boost_regex
61         ${QT_QTCORE_LIBRARY} 
62         intl)
63         
64 if(WIN32)
65         target_link_libraries(tex2lyx shlwapi)
66 endif()
67
68 if(APPLE)
69         target_link_libraries(tex2lyx "-framework Carbon")
70 endif()
71
72 project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
73