Enable sms test only when SMSAPP_ENABLED set to ON
Fix build on Windows and MacOS.
Mac Builder seems to be down by yesterday... But it's the same error on my own env:
-- Configuring done
CMake Error at /Volumes/Storage/Inoki/CraftRoot/share/ECM/modules/ECMAddTests.cmake:110 (add_executable):
Target "testconversationlistmodel" links to target "KF5::People" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
tests/CMakeLists.txt:44 (ecm_add_test)
-- Generating done
-- Build files have been written to: /Volumes/Storage/Inoki/CraftRoot/build/extragear/kdeconnect-kde/work/RelWithDebInfo-master
executing command: "/Volumes/Storage/Inoki/CraftRoot/dev-utils/bin/ninja"
ninja: error: loading 'build.ninja': No such file or directory
Action: compile for extragear/kdeconnect-kde:master FAILED
*** Craft all failed: extragear/kdeconnect-kde after 18 seconds ***
fatal error: package extragear/kdeconnect-kde all failed
Enable sms test when SMSAPP_ENABLED set to ON
Edited by Weixuan Xiao