Warning, /plasma/latte-dock/app/FakeTarget.cmake is written in an unsupported language. File is not indexed.

0001 execute_process(COMMAND find ../shell ../containment ../plasmoid -name "*.qml" -o -name "*.js"
0002     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
0003     OUTPUT_VARIABLE QML_SRCS_STRING)
0004 
0005 string(REPLACE "\n" ";" QML_SRCS ${QML_SRCS_STRING})
0006 
0007 # fake target for QtCreator project
0008 add_custom_target(fake-target
0009     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
0010     SOURCES ${QML_SRCS})
0011 
0012 # qmllint: qml static syntax checker
0013 if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
0014     find_program(QMLLINT qmllint)
0015 
0016     if(EXISTS "${QMLLINT}")
0017         message("-- Found qmllint: ${QMLLINT}")
0018         add_custom_command(TARGET latte-dock PRE_BUILD
0019             COMMAND ${QMLLINT} ${QML_SRCS}
0020             WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
0021             COMMENT "Running qmllint")
0022     else()
0023         message("-- qmllint: QML Syntax verifier not found")
0024     endif()
0025 
0026     message("-- Enabling QML debugging and profiling")
0027     add_definitions(-DQT_QML_DEBUG)
0028     add_definitions(-DQT_FATAL_WARNINGS)
0029 
0030 elseif(${CMAKE_BUILD_TYPE} MATCHES "Release")
0031     message("-- Disabling debug info")
0032     add_definitions(-DQT_NO_DEBUG)
0033 
0034 endif()