File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11# Common functions and settings for LSL
22
3- message (STATUS "Included LSL CMake helpers, rev. 10 " )
3+ message (STATUS "Included LSL CMake helpers, rev. 9 " )
44
55# set build type and default install dir if not done already
66if (NOT CMAKE_BUILD_TYPE )
@@ -43,6 +43,13 @@ endif()
4343
4444set (CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "limited configs" FORCE)
4545
46+ # Qt5
47+ set (CMAKE_INCLUDE_CURRENT_DIR ON ) # Because the ui_mainwindow.h file.
48+ # Enable automatic compilation of .cpp->.moc, xy.ui->ui_xy.h and resource files
49+ set (CMAKE_AUTOMOC ON )
50+ set (CMAKE_AUTOUIC ON )
51+ set (CMAKE_AUTORCC ON )
52+
4653# Boost
4754#SET(Boost_DEBUG OFF) #Switch this and next to ON for help debugging Boost problems.
4855#SET(Boost_DETAILED_FAILURE_MSG ON)
@@ -127,13 +134,6 @@ function(installLSLAppSingleFolder target)
127134 # do we need to install with Qt5?
128135 get_target_property (TARGET_LIBRARIES ${target} LINK_LIBRARIES )
129136 if (";${TARGET_LIBRARIES} " MATCHES ";Qt5::" )
130- # Qt5
131- set (CMAKE_INCLUDE_CURRENT_DIR ON ) # Because the ui_mainwindow.h file.
132- # Enable automatic compilation of .cpp->.moc, xy.ui->ui_xy.h and resource files
133- set (CMAKE_AUTOMOC ON )
134- set (CMAKE_AUTOUIC ON )
135- set (CMAKE_AUTORCC ON )
136-
137137 if (WIN32 )
138138 findQtInstallationTool("windeployqt" )
139139 if (QT_DEPLOYQT_EXECUTABLE)
You can’t perform that action at this time.
0 commit comments