]> git.lyx.org Git - features.git/blob - development/cmake/src/tex2lyx/CMakeLists.txt
5731d516841b99c2fc70070718e3c9e3398b6f83
[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
10
11 set(LINKED_FILES
12         ${TOP_SRC_DIR}/src/FloatList.C
13         ${TOP_SRC_DIR}/src/Floating.C
14         ${TOP_SRC_DIR}/src/counters.C
15         ${TOP_SRC_DIR}/src/lyxlayout.h
16         ${TOP_SRC_DIR}/src/lyxlayout.C
17         ${TOP_SRC_DIR}/src/lyxtextclass.C
18         ${TOP_SRC_DIR}/src/lyxtextclass.h
19         ${TOP_SRC_DIR}/src/lyxlex.C
20         ${TOP_SRC_DIR}/src/lyxlex_pimpl.C
21 )
22
23 set(tex2lyx_sources
24         ${TOP_SRC_DIR}/src/tex2lyx/Spacing.h
25         ${TOP_SRC_DIR}/src/tex2lyx/boost.C
26         ${TOP_SRC_DIR}/src/tex2lyx/context.C
27         ${TOP_SRC_DIR}/src/tex2lyx/
28         ${TOP_SRC_DIR}/src/tex2lyx/context.h
29         ${TOP_SRC_DIR}/src/tex2lyx/gettext.C
30         ${TOP_SRC_DIR}/src/tex2lyx/lengthcommon.C
31         ${TOP_SRC_DIR}/src/tex2lyx/lyxfont.C
32         ${TOP_SRC_DIR}/src/tex2lyx/lyxfont.h
33         ${TOP_SRC_DIR}/src/tex2lyx/texparser.C
34         ${TOP_SRC_DIR}/src/tex2lyx/texparser.h
35         ${TOP_SRC_DIR}/src/tex2lyx/tex2lyx.C
36         ${TOP_SRC_DIR}/src/tex2lyx/tex2lyx.h
37         ${TOP_SRC_DIR}/src/tex2lyx/preamble.C
38         ${TOP_SRC_DIR}/src/tex2lyx/math.C
39         ${TOP_SRC_DIR}/src/tex2lyx/table.C
40         ${TOP_SRC_DIR}/src/tex2lyx/text.C
41 )
42
43 include_directories(BEFORE ${TOP_SRC_DIR}/src/tex2lyx)
44
45
46 add_executable(tex2lyx ${tex2lyx_sources} ${LINKED_FILES})
47
48 target_link_libraries(tex2lyx  
49         support
50         boost_iostreams
51         boost_filesystem
52         boost_regex
53         ${QT_QTCORE_LIBRARY} 
54         intl
55         )
56         
57 if(WIN32)
58         target_link_libraries(tex2lyx shlwapi)
59 endif(WIN32)
60
61 project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
62