summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-qt.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-02 13:01:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-05 00:16:14 +0200
commit22a853b388597e9549125df69508c1c38706dd1d (patch)
tree242ca979884532d7f9a4c4c08d4fcd7ccab107f2 /cmake/opentrack-qt.cmake
parent43f082e9de6cacab40b7df63ca4ea40a63a8440d (diff)
cmake/qt: don't include in all projects
Diffstat (limited to 'cmake/opentrack-qt.cmake')
-rw-r--r--cmake/opentrack-qt.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-qt.cmake b/cmake/opentrack-qt.cmake
index 911eec5b..3c9bb9a4 100644
--- a/cmake/opentrack-qt.cmake
+++ b/cmake/opentrack-qt.cmake
@@ -4,8 +4,6 @@ if(WIN32)
endif()
find_package(Qt5 COMPONENTS SerialPort QUIET)
-include_directories(SYSTEM ${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS})
-add_definitions(${Qt5Core_DEFINITIONS} ${Qt5Gui_DEFINITIONS} ${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS})
set(MY_QT_LIBS ${Qt5Core_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Network_LIBRARIES})
function(otr_pdb_for_dll varname path)
@@ -60,4 +58,6 @@ function(otr_qt n)
list(APPEND ${n}-all ${${n}-${i}})
endforeach()
set(${n}-all "${${n}-all}" PARENT_SCOPE)
+ include_directories(SYSTEM ${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS})
+ add_definitions(${Qt5Core_DEFINITIONS} ${Qt5Gui_DEFINITIONS} ${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS})
endfunction()