X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=696b0ead2cf000a5622a68fad2d4eae48adefdde;hb=2a0e4c199c4f18d80ec5a2ab452f3cf18eafc56c;hp=b7d1b06791f378abdac6740aefeb1807b8823bd2;hpb=050d817605f5033d3937c0f3734cd210a4bb1b64;p=lyx.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b7d1b06791..696b0ead2c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,8 +25,10 @@ file(GLOB lyx_sources ${TOP_SRC_DIR}/src/${LYX_CPP_FILES}) file(GLOB moc_files ${TOP_SRC_DIR}/src/${LYX_MOC_FILES}) list(REMOVE_ITEM lyx_sources ${moc_files} .) file(GLOB lyx_headers ${TOP_SRC_DIR}/src/${LYX_HPP_FILES}) +set(lyxwrap_sources ${TOP_SRC_DIR}/src/lyxwrap.cpp) list(REMOVE_ITEM lyx_sources + ${TOP_SRC_DIR}/src/lyxwrap.cpp ${TOP_SRC_DIR}/src/Variables.cpp ${TOP_SRC_DIR}/src/Section.cpp ${TOP_SRC_DIR}/src/lyxcore.cpp @@ -128,13 +130,11 @@ target_link_libraries(${_lyx} frontend_qt graphics support + ${MYTHESLIB_LIBRARY} ${ICONV_LIBRARY} ${LYX_QTMAIN_LIBRARY} ${vld_dll}) -if(LYX_USE_QT MATCHES "QT4") - target_link_libraries(${_lyx} ${QT_QTSVG_LIBRARY}) -endif() qt_use_modules(${_lyx} Core Gui) if(QT_USES_X11) @@ -192,4 +192,15 @@ if(LYX_BUNDLE) endif() endif() +set(dowrapper ON) # create and install wrapper for external commands +foreach(_f ${lyxwrap_sources}) + if(NOT EXISTS "${_f}") + set(dowrapper OFF) + endif() +endforeach() +if(dowrapper AND USE_POSIX_PACKAGING) + add_executable(lyxwrap${PROGRAM_SUFFIX} ${lyxwrap_sources}) + install(TARGETS lyxwrap${PROGRAM_SUFFIX} DESTINATION ${LYX_UTILITIES_INSTALL_PATH}) +endif() + add_subdirectory(tests)