1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2006-2011 Peter Kümmel, <syntheticpp@gmx.net>
5 # Copyright (c) 2008-2011 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 FontInfo
17 Layout LayoutFile LayoutModuleList Lexer ModuleList TextClass
19 list(APPEND LINKED_sources ${TOP_SRC_DIR}/src/${_src}.cpp)
20 list(APPEND LINKED_headers ${TOP_SRC_DIR}/src/${_src}.h)
23 file(GLOB tex2lyx_sources ${TOP_SRC_DIR}/src/tex2lyx/${LYX_CPP_FILES})
25 file(GLOB tex2lyx_headers ${TOP_SRC_DIR}/src/tex2lyx/${LYX_HPP_FILES})
27 include_directories(BEFORE
28 ${TOP_SRC_DIR}/src/tex2lyx
29 ${TOP_SRC_DIR}/src/support/minizip
32 add_definitions(-DTEX2LYX)
34 if(NOT LYX_MERGE_FILES)
35 add_executable(${_tex2lyx} ${tex2lyx_sources} ${LINKED_sources} ${tex2lyx_headers} ${LINKED_headers})
37 lyx_const_touched_files(_allinone tex2lyx_sources)
38 lyx_const_touched_files(_allinone_linked LINKED_sources)
39 add_executable(${_tex2lyx} ${_allinone_files} ${_allinone_linked_files})
42 target_link_libraries(${_tex2lyx}
44 ${Lyx_Boost_Libraries}
50 target_link_libraries(${_tex2lyx} shlwapi ole32 psapi)
54 target_link_libraries(${_tex2lyx} "-framework AppKit")
58 project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
61 install(TARGETS ${_tex2lyx}
62 RUNTIME DESTINATION bin
65 install(TARGETS ${_tex2lyx} DESTINATION bin)