1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
9 include_directories(${TOP_SRC_DIR}/src)
11 add_subdirectory(frontends)
12 add_subdirectory(graphics)
13 add_subdirectory(insets)
14 add_subdirectory(mathed)
15 add_subdirectory(support)
16 add_subdirectory(tex2lyx)
19 file(GLOB lyx_sources ${TOP_SRC_DIR}/src/${LYX_CPP_FILES})
20 file(GLOB lyx_headers ${TOP_SRC_DIR}/src/${LYX_HPP_FILES})
22 list(REMOVE_ITEM lyx_sources
23 ${TOP_SRC_DIR}/src/ASpell.cpp
24 ${TOP_SRC_DIR}/src/PSpell.cpp
25 ${TOP_SRC_DIR}/src/ISpell.cpp
26 ${TOP_SRC_DIR}/src/Variables.cpp
27 ${TOP_SRC_DIR}/src/Section.cpp)
30 include_directories(${ASPELL_INCLUDE_DIR})
31 set(lyx_sources ${lyx_sources} ${TOP_SRC_DIR}/src/ASpell.cpp)
34 include_directories(${CMAKE_CURRENT_BINARY_DIR}
41 set(lyx_sources ${lyx_sources})
43 lyx_const_touched_files(_allinone lyx_sources)
44 set(lyx_sources ${_allinone_files})
47 if(LYX_LEAK_DETECTION)
48 configure_file(${vld_path}/vld.ini ${CMAKE_CURRENT_BINARY_DIR}/vld.ini COPYONLY)
49 configure_file(${vld_path}/vld.ini ${CMAKE_CURRENT_BINARY_DIR}/memory_leak_report.txt COPYONLY)
50 set(vld_files ${CMAKE_CURRENT_BINARY_DIR}/vld.ini ${CMAKE_CURRENT_BINARY_DIR}/memory_leak_report.txt)
60 target_link_libraries(lyx
73 target_link_libraries(lyx ${ASPELL_LIBRARY})
77 target_link_libraries(lyx "-bind_at_load" )
78 target_link_libraries(lyx "-framework Carbon" )
82 target_link_libraries(lyx ole32)
85 project_source_group("${GROUP_CODE}" lyx_sources lyx_headers)
87 install(TARGETS lyx DESTINATION bin)