mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-05 05:47:26 +03:00
FakeTarget moved to app/
This commit is contained in:
parent
8ab421648e
commit
6291e55260
@ -29,11 +29,14 @@ set(lattedock-app_SRCS
|
||||
|
||||
add_executable(latte-dock ${lattedock-app_SRCS})
|
||||
|
||||
include(FakeTarget.cmake)
|
||||
|
||||
target_link_libraries(
|
||||
latte-dock
|
||||
Qt5::Widgets
|
||||
Qt5::Quick
|
||||
Qt5::Qml
|
||||
Qt5::X11Extras
|
||||
KF5::I18n
|
||||
KF5::CoreAddons
|
||||
KF5::XmlGui
|
||||
@ -42,6 +45,7 @@ target_link_libraries(
|
||||
KF5::QuickAddons
|
||||
KF5::DBusAddons
|
||||
KF5::Notifications
|
||||
KF5::WindowSystem
|
||||
)
|
||||
|
||||
install(TARGETS latte-dock ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
@ -1,13 +1,13 @@
|
||||
execute_process(COMMAND find shell containment plasmoid -name "*.qml" -o -name "*.js"
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
execute_process(COMMAND find ../shell ../containment ../plasmoid -name "*.qml" -o -name "*.js"
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE QML_SRCS_STRING)
|
||||
|
||||
string(REPLACE "\n" ";" QML_SRCS ${QML_SRCS_STRING})
|
||||
|
||||
# fake target for QtCreator project
|
||||
add_custom_target(fake-target
|
||||
SOURCES ${QML_SRCS}
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
SOURCES ${QML_SRCS})
|
||||
|
||||
# qmllint: qml static syntax checker
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
||||
@ -15,9 +15,9 @@ if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
||||
|
||||
if(EXISTS "${QMLLINT}")
|
||||
message("-- Found qmllint: ${QMLLINT}")
|
||||
add_custom_command(TARGET candil PRE_BUILD
|
||||
add_custom_command(TARGET latte-dock PRE_BUILD
|
||||
COMMAND ${QMLLINT} ${QML_SRCS}
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMENT "Running qmllint")
|
||||
else()
|
||||
message("-- qmllint: QML Syntax verifier not found")
|
Loading…
x
Reference in New Issue
Block a user