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>
7 project(lyx-${qt_postfix})
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 configure_file(${TOP_SRC_DIR}/src/version.C.in ${CMAKE_CURRENT_BINARY_DIR}/version.C)
21 file(GLOB lyx_sources ${TOP_SRC_DIR}/src/*.C)
22 file(GLOB lyx_headers ${TOP_SRC_DIR}/src/*.h)
24 list(REMOVE_ITEM lyx_sources
25 ${TOP_SRC_DIR}/src/aspell.C
26 ${TOP_SRC_DIR}/src/pspell.C
27 ${TOP_SRC_DIR}/src/ispell.C
28 ${TOP_SRC_DIR}/src/Variables.C
29 ${TOP_SRC_DIR}/src/Sectioning.C)
32 include_directories(${ASPELL_INCLUDE_DIR})
33 set(lyx_sources ${lyx_sources} ${TOP_SRC_DIR}/src/aspell.C)
36 include_directories(${CMAKE_CURRENT_BINARY_DIR})
42 set(lyx_sources ${lyx_sources} ${CMAKE_CURRENT_BINARY_DIR}/version.C)
44 lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/lyx_allinone.C lyx_sources)
45 set(lyx_sources ${CMAKE_CURRENT_BINARY_DIR}/lyx_allinone.C ${CMAKE_CURRENT_BINARY_DIR}/version.C)
46 endif(NOT MERGE_FILES)
48 add_executable(lyx-${qt_postfix}
54 target_link_libraries(lyx-${qt_postfix}
58 frontend_${qt_postfix}
67 target_link_libraries(lyx-${qt_postfix} ${ASPELL_LIBRARY})
71 target_link_libraries(lyx-${qt_postfix} "-bind_at_load" )
72 target_link_libraries(lyx-${qt_postfix} "-framework Carbon" )
75 project_source_group("${GROUP_CODE}" lyx_sources lyx_headers)