1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2006, 2008, 2009 Peter Kümmel, <syntheticpp@gmx.net>
5 # Copyright (c) 2008, 2009 Kornel Benko, <Kornel.Benko@berlin.de>
8 set(_tex2lyx tex2lyx${PROGRAM_SUFFIX})
11 # There is no header file lengthcommon.h
12 set(LINKED_sources ${TOP_SRC_DIR}/src/lengthcommon.cpp)
15 foreach(_src insets/InsetLayout Color Counters
16 Encoding FloatList Floating
17 Layout LayoutModuleList Lexer ModuleList TextClass)
18 list(APPEND LINKED_sources ${TOP_SRC_DIR}/src/${_src}.cpp)
19 list(APPEND LINKED_headers ${TOP_SRC_DIR}/src/${_src}.h)
22 file(GLOB tex2lyx_sources ${TOP_SRC_DIR}/src/tex2lyx/${LYX_CPP_FILES})
24 file(GLOB tex2lyx_headers ${TOP_SRC_DIR}/src/tex2lyx/${LYX_HPP_FILES})
26 include_directories(BEFORE ${TOP_SRC_DIR}/src/tex2lyx
27 ${TOP_SRC_DIR}/src/support/minizip ${ZLIB_INCLUDE_DIR})
29 add_definitions(-DTEX2LYX)
32 add_executable(${_tex2lyx} ${tex2lyx_sources} ${LINKED_sources}
33 ${tex2lyx_headers} ${LINKED_headers})
35 lyx_const_touched_files(_allinone tex2lyx_sources)
36 lyx_const_touched_files(_allinone_linked LINKED_sources)
37 add_executable(${_tex2lyx} ${_allinone_files} ${_allinone_linked_files})
40 target_link_libraries(${_tex2lyx}
42 ${Lyx_Boost_Libraries}
48 target_link_libraries(${_tex2lyx} shlwapi ole32 psapi)
52 target_link_libraries(${_tex2lyx} "-framework Carbon")
55 project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
57 install(TARGETS ${_tex2lyx} DESTINATION bin)