]> git.lyx.org Git - features.git/blob - development/cmake/src/tex2lyx/CMakeLists.txt
d7c5de6d42fabec6e024663bedb6b9f24939b99f
[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 if(MSVC)
46         SET_SOURCE_FILES_PROPERTIES(${TOP_SRC_DIR}/src/lyxlayout.C ${TOP_SRC_DIR}/src/lyxtextclass.C
47                 PROPERTIES COMPILE_FLAGS 
48                 "/FI${TOP_SRC_DIR}/src/tex2lyx/lyxfont.h /FI${TOP_SRC_DIR}/src/tex2lyx/Spacing.h")
49 else(MSVC)
50         SET_SOURCE_FILES_PROPERTIES(${TOP_SRC_DIR}/src/lyxlayout.C ${TOP_SRC_DIR}/src/lyxtextclass.C
51                 PROPERTIES COMPILE_FLAGS 
52                 "-include ${TOP_SRC_DIR}/src/tex2lyx/lyxfont.h -include ${TOP_SRC_DIR}/src/tex2lyx/Spacing.h")
53 endif(MSVC)
54
55 add_executable(tex2lyx ${tex2lyx_sources} ${LINKED_FILES})
56
57 target_link_libraries(tex2lyx  
58         support
59         boost_iostreams
60         boost_filesystem
61         boost_regex
62         ${QT_QTCORE_LIBRARY} 
63         intl
64         )
65         
66 if(WIN32)
67         target_link_libraries(tex2lyx shlwapi)
68 endif(WIN32)
69
70 project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
71