2011-05-10 17:44:41 +00:00
|
|
|
# This file is part of LyX, the document processor.
|
|
|
|
# Licence details can be found in the file COPYING.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2008-2011 Peter Kümmel, <syntheticpp@gmx.net>
|
|
|
|
# Copyright (c) 2008-2011 Kornel Benko, <Kornel.Benko@berlin.de>
|
|
|
|
#
|
|
|
|
|
|
|
|
set(_lyxclient lyxclient${PROGRAM_SUFFIX})
|
|
|
|
project(${_lyxclient})
|
|
|
|
|
|
|
|
file(GLOB _lyxclient_sources ${TOP_SRC_DIR}/src/client/*.cpp)
|
|
|
|
file(GLOB _lyxclient_headers ${TOP_SRC_DIR}/src/client/*.h)
|
|
|
|
|
|
|
|
list(REMOVE_ITEM _lyxclient_headers "${TOP_SRC_DIR}/src/client/pch.h")
|
|
|
|
list(REMOVE_ITEM _lyxclient_sources "${TOP_SRC_DIR}/src/client/lyxclient.cpp")
|
|
|
|
|
|
|
|
include_directories(BEFORE
|
|
|
|
"${TOP_SRC_DIR}/src/client"
|
|
|
|
"${TOP_SRC_DIR}/boost"
|
2011-05-12 21:11:35 +00:00
|
|
|
${ZLIB_INCLUDE_DIR}
|
|
|
|
${LIBINTL_INCLUDE_DIR})
|
2011-05-10 17:44:41 +00:00
|
|
|
|
|
|
|
if(LYX_MERGE_FILES)
|
|
|
|
set(_lyxclient_sources ${_lyxclient_sources} ${TOP_SRC_DIR}/src/TexRow.cpp)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_executable(${_lyxclient} ${_lyxclient_sources} ${_lyxclient_headers})
|
|
|
|
|
|
|
|
target_link_libraries(${_lyxclient}
|
|
|
|
support
|
|
|
|
${Lyx_Boost_Libraries}
|
2012-10-21 14:58:45 +00:00
|
|
|
${intl_link}
|
2011-05-10 17:44:41 +00:00
|
|
|
${ICONV_LIBRARY}
|
|
|
|
${QT_QTCORE_LIBRARY}
|
2011-05-12 21:11:35 +00:00
|
|
|
${QT_QTGUI_LIBRARY})
|
2011-05-10 17:44:41 +00:00
|
|
|
|
|
|
|
if(ASPELL_FOUND)
|
|
|
|
target_link_libraries(${_lyxclient} ${ASPELL_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(APPLE)
|
2011-10-03 16:49:06 +00:00
|
|
|
target_link_libraries(${_lyxclient} "-framework AppKit")
|
2011-05-10 17:44:41 +00:00
|
|
|
endif()
|
|
|
|
|
2011-05-15 13:21:18 +00:00
|
|
|
if(LYX_BUNDLE)
|
|
|
|
install(TARGETS ${_lyxclient}
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
BUNDLE DESTINATION .)
|
|
|
|
else()
|
|
|
|
install(TARGETS ${_lyxclient} DESTINATION bin)
|
|
|
|
endif()
|
2011-05-10 19:18:44 +00:00
|
|
|
|
2011-05-10 17:44:41 +00:00
|
|
|
|