From a1b2b02b18e97c13d4934999a56de48472eae6ac Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Sat, 28 Dec 2024 13:13:16 +0100 Subject: [PATCH] Update build for SFOS --- daemon/CMakeLists.txt | 1 - lib/CMakeLists.txt | 6 ++---- ui/CMakeLists.txt | 9 +++++++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index 748c1b77..8e648e20 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -1,4 +1,3 @@ - set(SOURCES ./src/activitycoordinate.cpp ./src/activitykind.cpp diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index e830e5c3..f2d6f66c 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -10,14 +10,12 @@ find_package(Qt5 REQUIRED COMPONENTS Core DBus Xml) if(FLAVOR STREQUAL "silica") pkg_check_modules(MLITE5 REQUIRED mlite5) - include_directories(${MLITE5_INCLUDE_DIRS}) - link_libraries(${MLITE5_LIBRARIES}) endif() -target_include_directories(libamazfish PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) -target_link_libraries(libamazfish PUBLIC Qt5::Core Qt5::DBus Qt5::Xml) +target_include_directories(libamazfish PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src ${MLITE5_INCLUDE_DIRS}) +target_link_libraries(libamazfish PUBLIC Qt5::Core Qt5::DBus Qt5::Xml ${MLITE5_LIBRARIES}) set(SOURCES ./src/amazfish.cpp diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt index d968980a..cedd3f9f 100644 --- a/ui/CMakeLists.txt +++ b/ui/CMakeLists.txt @@ -73,8 +73,17 @@ target_link_libraries(harbour-amazfish-ui Qt5::Core Qt5::Widgets Qt5::Quick Qt5::Positioning KDb o2 + ${SAILFISH_LDFLAGS} ) +if(FLAVOR STREQUAL "silica") + target_include_directories(harbour-amazfish-ui PRIVATE + $) +endif() + + #install(FILES "harbour-amazfish.desktop" # DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")