]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/CMakeLists.txt
On Mac, moving down a paragraph should place the cursor at the end of the current...
[lyx.git] / src / frontends / qt4 / CMakeLists.txt
index 8d05dcf51601b811e37da0e07888f00d795b2db0..14283ea0b2f63f99d1085c7d7373398ba2ce5268 100644 (file)
@@ -22,13 +22,18 @@ lyx_automoc(${frontends_qt4_sources})
 
 lyx_add_ui_files(frontends_qt4_sources ui_files ${frontend_qt4_UI})
 
-file(GLOB_RECURSE frontend_qt4_images_png      ${TOP_SRC_DIR}/lib/images/*.png)
-file(GLOB_RECURSE frontend_qt4_images_gif      ${TOP_SRC_DIR}/lib/images/*.gif)
 set(resource_name ${CMAKE_CURRENT_BINARY_DIR}/Resources.qrc)
-set(frontend_qt4_images ${frontend_qt4_images_png} ${frontend_qt4_images_gif})
-lyx_qt_resources_file(${resource_name} "${TOP_SRC_DIR}/lib/" frontend_qt4_images)
-qt4_add_resources(resource_files ${resource_name})
 
+add_custom_command(
+       OUTPUT  ${resource_name}
+       COMMAND ${CMAKE_COMMAND}
+               -DIMAGES_DIR=${TOP_SRC_DIR}/lib/images
+               -DRESOURCE_NAME=${resource_name}
+               -DMAPPED_DIR=${TOP_SRC_DIR}/lib/
+               -P ${TOP_SCRIPT_PATH}/LyXCreateImagesResource.cmake
+       )
+
+qt_add_resources(resource_files ${resource_name})
 
 add_definitions(-DQT_GENUINE_STR -DLYX_BUILD_QT4_FRONTEND)
 
@@ -37,10 +42,6 @@ include_directories(
        ${QT_INCLUDES}
        ${CMAKE_CURRENT_BINARY_DIR})
 
-if (LYX_DEVEL_VERSION)
-       add_definitions(-DDEVEL_VERSION)
-endif()
-
 if(LYX_MERGE_FILES)
        lyx_const_touched_files(_allinone frontends_qt4_sources)
        set(depends_moc_uic ${frontends_qt4_headers} ${ui_files})
@@ -51,8 +52,9 @@ if(LYX_MERGE_FILES)
 else()
        add_library(frontend_qt4 ${library_type} ${frontends_qt4_sources} ${frontends_qt4_headers} ${ui_files} ${resource_files})
 endif()
+set_target_properties(frontend_qt4 PROPERTIES FOLDER "applications/LyX")
 
-
+qt_use_modules(frontend_qt4 Core Gui Widgets Concurrent)
 target_link_libraries(frontend_qt4
        frontends
        ${QT_QTCORE_LIBRARY}