aboutsummaryrefslogtreecommitdiff
path: root/cmake/QMakeQuery.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/QMakeQuery.cmake')
-rw-r--r--cmake/QMakeQuery.cmake14
1 files changed, 0 insertions, 14 deletions
diff --git a/cmake/QMakeQuery.cmake b/cmake/QMakeQuery.cmake
deleted file mode 100644
index bf0fe967..00000000
--- a/cmake/QMakeQuery.cmake
+++ /dev/null
@@ -1,14 +0,0 @@
-if(__QMAKEQUERY_CMAKE__)
- return()
-endif()
-set(__QMAKEQUERY_CMAKE__ TRUE)
-
-get_target_property(QMAKE_EXECUTABLE Qt5::qmake LOCATION)
-
-function(QUERY_QMAKE VAR RESULT)
- exec_program(${QMAKE_EXECUTABLE} ARGS "-query ${VAR}" RETURN_VALUE return_code OUTPUT_VARIABLE output )
- if(NOT return_code)
- file(TO_CMAKE_PATH "${output}" output)
- set(${RESULT} ${output} PARENT_SCOPE)
- endif(NOT return_code)
-endfunction(QUERY_QMAKE)