Ticket #54448: patch-build-for-MP.diff
File patch-build-for-MP.diff, 3.2 KB (added by RJVB (René Bertin), 7 years ago) |
---|
-
CMakeLists.txt
old new 1 project(" DB Browser for SQLite")1 project("sqlitebrowser") 2 2 cmake_minimum_required(VERSION 2.8.7) 3 3 4 4 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}") … … 10 10 set(CMAKE_BUILD_TYPE "Release") 11 11 endif() 12 12 13 include(FeatureSummary) 14 13 15 if(WIN32 AND MSVC) 14 16 if(CMAKE_CL_64) 15 17 # Paths for 64-bit windows builds … … 47 49 48 50 set(QHEXEDIT_DIR libs/qhexedit) 49 51 set(QCUSTOMPLOT_DIR libs/qcustomplot-source) 50 set(QSCINTILLA_DIR libs/qscintilla/Qt4Qt5)52 # set(QSCINTILLA_DIR libs/qscintilla/Qt4Qt5) 51 53 52 54 if(NOT ANTLR2_FOUND) 53 55 set(ANTLR_DIR libs/antlr-2.7.7) … … 55 57 endif() 56 58 add_subdirectory(${QHEXEDIT_DIR}) 57 59 add_subdirectory(${QCUSTOMPLOT_DIR}) 58 add_subdirectory(${QSCINTILLA_DIR})60 # add_subdirectory(${QSCINTILLA_DIR}) 59 61 60 62 if(USE_QT5) 61 63 find_package(Qt5Widgets REQUIRED) … … 258 260 "${CMAKE_CURRENT_BINARY_DIR}" 259 261 ${QHEXEDIT_DIR} 260 262 ${QCUSTOMPLOT_DIR} 261 ${QSCINTILLA_ DIR}263 ${QSCINTILLA_INCLUDE_DIR} 262 264 ${ADDITIONAL_INCLUDE_PATHS} 263 265 src) 264 266 if(ANTLR2_FOUND) … … 279 281 qt5_use_modules(${PROJECT_NAME} Gui Widgets Network Test PrintSupport) 280 282 set(QT_LIBRARIES "") 281 283 endif() 282 add_dependencies(${PROJECT_NAME} qhexedit qcustomplot qscintilla2) 284 # add_dependencies(${PROJECT_NAME} qhexedit qcustomplot qscintilla2) 285 add_dependencies(${PROJECT_NAME} qhexedit qcustomplot) 283 286 if(NOT ANTLR2_FOUND) 284 287 add_dependencies(${PROJECT_NAME} antlr) 285 288 endif() … … 287 290 link_directories( 288 291 "${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR}" 289 292 "${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}" 290 "${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}" 291 "${CMAKE_CURRENT_BINARY_DIR}/${QSCINTILLA_DIR}") 293 "${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}") 292 294 if(NOT ANTLR2_FOUND) 293 295 link_directories("${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR}") 294 296 endif() … … 296 298 target_link_libraries(${PROJECT_NAME} 297 299 qhexedit 298 300 qcustomplot 299 qscintilla2301 "-L${QSCINTILLA_LIB_DIR} -lqscintilla2_qt5" 300 302 ${QT_LIBRARIES} 301 303 ${WIN32_STATIC_LINK} 302 304 ${LIBSQLITE} … … 326 328 add_subdirectory(src/tests) 327 329 endif() 328 330 329 if(UNIX AND NOT APPLE)331 if(UNIX) 330 332 install(FILES src/icons/${PROJECT_NAME}.png 331 333 DESTINATION share/icons/hicolor/256x256/apps/) 332 334 … … 335 337 336 338 install(FILES distri/${PROJECT_NAME}.desktop.appdata.xml 337 339 DESTINATION share/appdata/) 338 endif(UNIX AND NOT APPLE)340 endif(UNIX) 339 341 340 342 if(WIN32 AND MSVC) 341 343 install(TARGETS ${PROJECT_NAME} … … 405 407 ExecWait '\\\"$INSTDIR\\\\redist\\\\${VSREDIST}\\\" /install /passive /quiet' 406 408 Delete '\\\"$INSTDIR\\\\redist\\\\${VSREDIST}\\\"' 407 409 ") 408 else(WIN32 AND NOT UNIX)409 set(CPACK_STRIP_FILES "bin/DB Browser for SQLite")410 set(CPACK_SOURCE_STRIP_FILES "")410 # else(WIN32 AND NOT UNIX) 411 # set(CPACK_STRIP_FILES "bin/DB Browser for SQLite") 412 # set(CPACK_SOURCE_STRIP_FILES "") 411 413 endif(WIN32 AND NOT UNIX) 412 set(CPACK_PACKAGE_EXECUTABLES " DB Browser for SQLite" "DB Browser for SQLite")414 set(CPACK_PACKAGE_EXECUTABLES "SQLiteBrowser" "DB Browser for SQLite") 413 415 include(CPack) 416 417 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) 418