2006-06-20 09:57:19 +00:00
|
|
|
project(lyx-${qt_postfix})
|
2006-06-11 11:57:25 +00:00
|
|
|
|
|
|
|
include_directories(${TOP_SRC_DIR}/src)
|
|
|
|
|
|
|
|
add_subdirectory(frontends)
|
|
|
|
add_subdirectory(graphics)
|
|
|
|
add_subdirectory(insets)
|
|
|
|
add_subdirectory(mathed)
|
|
|
|
add_subdirectory(support)
|
|
|
|
#add_subdirectory(tex2lyx)
|
|
|
|
|
|
|
|
|
|
|
|
configure_file(version.C.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.C)
|
|
|
|
|
2006-06-16 16:43:17 +00:00
|
|
|
file(GLOB lyx_sources ${TOP_SRC_DIR}/src/*.C)
|
|
|
|
file(GLOB lyx_headers ${TOP_SRC_DIR}/src/*.h)
|
|
|
|
|
|
|
|
list(REMOVE_ITEM lyx_sources
|
|
|
|
${TOP_SRC_DIR}/src/aspell.C
|
|
|
|
${TOP_SRC_DIR}/src/pspell.C
|
|
|
|
${TOP_SRC_DIR}/src/ispell.C
|
|
|
|
${TOP_SRC_DIR}/src/Variables.C
|
|
|
|
${TOP_SRC_DIR}/src/Sectioning.C)
|
2006-06-11 11:57:25 +00:00
|
|
|
|
2006-09-03 17:51:53 +00:00
|
|
|
set( lyx_sources ${lyx_sources} ${CMAKE_CURRENT_BINARY_DIR}/version.C )
|
|
|
|
|
2006-06-11 11:57:25 +00:00
|
|
|
if(ASPELL_FOUND)
|
|
|
|
include_directories(${ASPELL_INCLUDE_DIR})
|
2006-06-16 16:43:17 +00:00
|
|
|
set(lyx_sources ${lyx_sources} ${TOP_SRC_DIR}/src/aspell.C)
|
2006-06-11 11:57:25 +00:00
|
|
|
endif(ASPELL_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2006-06-20 09:57:19 +00:00
|
|
|
add_executable(lyx-${qt_postfix}
|
2006-06-16 16:43:17 +00:00
|
|
|
${lyx_sources}
|
|
|
|
${lyx_headers}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.C
|
|
|
|
)
|
2006-06-11 11:57:25 +00:00
|
|
|
|
2006-06-20 09:57:19 +00:00
|
|
|
target_link_libraries(lyx-${qt_postfix}
|
2006-06-11 11:57:25 +00:00
|
|
|
mathed
|
|
|
|
insets
|
|
|
|
frontends
|
2006-06-20 09:57:19 +00:00
|
|
|
frontend_${qt_postfix}
|
2006-06-11 11:57:25 +00:00
|
|
|
graphics
|
|
|
|
support
|
|
|
|
intl
|
|
|
|
${QT_QTMAIN_LIBRARY}
|
|
|
|
boost_iostreams
|
|
|
|
)
|
|
|
|
|
2006-06-20 09:57:19 +00:00
|
|
|
|
2006-06-11 11:57:25 +00:00
|
|
|
if(ASPELL_FOUND)
|
2006-06-20 09:57:19 +00:00
|
|
|
target_link_libraries(lyx-${qt_postfix} ${ASPELL_LIBRARY})
|
2006-06-11 11:57:25 +00:00
|
|
|
endif(ASPELL_FOUND)
|
2006-09-03 17:51:53 +00:00
|
|
|
|
2006-09-03 23:50:16 +00:00
|
|
|
project_source_group("${GROUP_CODE}" lyx_sources lyx_headers)
|
2006-09-03 17:51:53 +00:00
|
|
|
|
|
|
|
|