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")
|
|
|
|
|
2017-07-03 17:53:41 +00:00
|
|
|
include_directories(BEFORE
|
|
|
|
"${TOP_SRC_DIR}/src/client"
|
|
|
|
"${TOP_SRC_DIR}/3rdparty/boost"
|
2013-05-12 13:43:22 +00:00
|
|
|
${ZLIB_INCLUDE_DIR})
|
2011-05-10 17:44:41 +00:00
|
|
|
|
|
|
|
add_executable(${_lyxclient} ${_lyxclient_sources} ${_lyxclient_headers})
|
|
|
|
|
|
|
|
target_link_libraries(${_lyxclient}
|
|
|
|
support
|
|
|
|
${Lyx_Boost_Libraries}
|
|
|
|
${ICONV_LIBRARY}
|
|
|
|
${QT_QTCORE_LIBRARY}
|
2014-06-12 17:02:29 +00:00
|
|
|
${QT_QTGUI_LIBRARY})
|
2011-05-10 17:44:41 +00:00
|
|
|
|
2014-06-12 17:02:29 +00:00
|
|
|
lyx_target_link_libraries(${_lyxclient} Magic ASPELL)
|
2011-05-10 17:44:41 +00:00
|
|
|
|
|
|
|
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()
|
|
|
|
|
2014-12-26 16:00:23 +00:00
|
|
|
if(CYGWIN)
|
|
|
|
target_link_libraries(${_lyxclient} shlwapi)
|
|
|
|
endif()
|
|
|
|
|
2014-03-09 09:21:51 +00:00
|
|
|
install(TARGETS ${_lyxclient} DESTINATION ${LYX_UTILITIES_INSTALL_PATH})
|
2011-05-10 17:44:41 +00:00
|
|
|
|