mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 22:32:19 +00:00
44 lines
1.2 KiB
CMake
44 lines
1.2 KiB
CMake
# 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}/3rdparty/boost"
|
|
${ZLIB_INCLUDE_DIR})
|
|
|
|
add_executable(${_lyxclient} ${_lyxclient_sources} ${_lyxclient_headers})
|
|
|
|
target_link_libraries(${_lyxclient}
|
|
support
|
|
${Lyx_Boost_Libraries}
|
|
${ICONV_LIBRARY}
|
|
${QT_QTCORE_LIBRARY}
|
|
${QT_QTGUI_LIBRARY})
|
|
|
|
qt_use_modules(${_lyxclient} ${QtCore5CompatModule})
|
|
lyx_target_link_libraries(${_lyxclient} Magic ASPELL)
|
|
|
|
if(APPLE)
|
|
target_link_libraries(${_lyxclient} "-framework AppKit")
|
|
endif()
|
|
|
|
if(CYGWIN)
|
|
target_link_libraries(${_lyxclient} shlwapi)
|
|
endif()
|
|
|
|
install(TARGETS ${_lyxclient} DESTINATION ${LYX_UTILITIES_INSTALL_PATH})
|
|
|