Fix macos build

This commit is contained in:
Weixuan Xiao 2019-05-19 09:41:56 +00:00
parent 51e4e399f4
commit 58beafb242
2 changed files with 5 additions and 3 deletions

View file

@ -31,7 +31,7 @@ else()
endif()
set(QCA_MIN_VERSION "2.1.0")
find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED)
if(NOT WIN32)
if(NOT WIN32 AND NOT APPLE)
find_package(KF5PulseAudioQt REQUIRED)
endif()
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)

View file

@ -7,7 +7,9 @@ add_subdirectory(battery)
add_subdirectory(sendnotifications)
add_subdirectory(mpriscontrol)
add_subdirectory(photo)
add_subdirectory(systemvolume)
if(NOT APPLE)
add_subdirectory(systemvolume)
endif()
if(NOT SAILFISHOS)
add_subdirectory(clipboard)
@ -20,7 +22,7 @@ if(NOT SAILFISHOS)
add_subdirectory(mousepad)
add_subdirectory(sms)
add_subdirectory(runcommand)
if(NOT WIN32)
if(NOT WIN32 AND NOT APPLE)
add_subdirectory(screensaver-inhibit)
add_subdirectory(sftp)
add_subdirectory(pausemusic)