Changeset View
Changeset View
Standalone View
Standalone View
src/qt/CMakeLists.txt
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||||
list(APPEND QT_PLUGIN_PLATFORM_DEFINITIONS -DQT_QPA_PLATFORM_COCOA=1) | list(APPEND QT_PLUGIN_PLATFORM_DEFINITIONS -DQT_QPA_PLATFORM_COCOA=1) | ||||
target_sources(bitcoin-qt-base PRIVATE | target_sources(bitcoin-qt-base PRIVATE | ||||
macdockiconhandler.mm | macdockiconhandler.mm | ||||
macnotificationhandler.mm | macnotificationhandler.mm | ||||
) | ) | ||||
set_property(TARGET bitcoin-qt-base PROPERTY AUTOMOC_MOC_OPTIONS "-DQ_OS_MAC") | set_property(TARGET bitcoin-qt-base PROPERTY AUTOMOC_MOC_OPTIONS "-DQ_OS_MAC") | ||||
target_link_libraries(bitcoin-qt-base | |||||
"-framework Foundation" | |||||
"-framework ApplicationServices" | |||||
"-framework AppKit" | |||||
) | |||||
endif() | endif() | ||||
# Find out more about Qt. This is similar to | # Find out more about Qt. This is similar to | ||||
# http://code.qt.io/cgit/qt/qtwebkit.git/tree/Source/cmake/OptionsQt.cmake | # http://code.qt.io/cgit/qt/qtwebkit.git/tree/Source/cmake/OptionsQt.cmake | ||||
get_target_property(QT_CORE_TYPE Qt5::Core TYPE) | get_target_property(QT_CORE_TYPE Qt5::Core TYPE) | ||||
if(QT_CORE_TYPE MATCHES STATIC) | if(QT_CORE_TYPE MATCHES STATIC) | ||||
set(QT_STATIC_BUILD ON) | set(QT_STATIC_BUILD ON) | ||||
endif() | endif() | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |