]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/CMakeLists.txt
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / CMakeLists.txt
index 3af2e865fd9c222e9ef9788d594d1b9ef6d20217..ff61e48c66ef0c86ae55e2efad60d0e988319eab 100644 (file)
@@ -7,6 +7,9 @@
 project(frontend_qt)
 
 file(GLOB frontends_qt_sources ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_CPP_FILES})
+if (LYX_USE_FILEDIALOG MATCHES "NATIVE")
+  set_property(SOURCE "${TOP_SRC_DIR}/src/frontends/qt4/FileDialog.cpp" PROPERTY COMPILE_FLAGS -DUSE_NATIVE_FILEDIALOG=1)
+endif()
 file(GLOB moc_files ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_MOC_FILES})
 
 list(REMOVE_ITEM frontends_qt_sources ${moc_files} .)
@@ -56,12 +59,12 @@ endif()
 set_target_properties(frontend_qt PROPERTIES FOLDER "applications/LyX")
 
 if(Qt5Core_FOUND AND APPLE)
-       qt_use_modules(frontend_qt Core Gui Widgets Concurrent MacExtras)
+       qt_use_modules(frontend_qt Core Gui Widgets Concurrent Svg MacExtras)
 else()
        if (Qt5WinExtras_FOUND)
-           qt_use_modules(frontend_qt Core Gui Widgets Concurrent WinExtras)
+           qt_use_modules(frontend_qt Core Gui Widgets Concurrent Svg WinExtras)
        else()
-           qt_use_modules(frontend_qt Core Gui Widgets Concurrent)
+           qt_use_modules(frontend_qt Core Gui Widgets Concurrent Svg)
        endif()
 endif()
 target_link_libraries(frontend_qt