File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
project (Endorphin)
2
2
cmake_minimum_required (VERSION 3.12)
3
3
4
- set (QT_MOC_EXECUTABLE "C:/qt/5.5/msvc2013/bin/moc.exe" )
5
- add_executable (Qt5::moc IMPORTED )
6
- set_target_properties (Qt5::moc PROPERTIES IMPORTED_LOCATION ${QT_MOC_EXECUTABLE} )
4
+ if (DEFINED QT_MOC_EXECUTABLE)
5
+ add_executable (Qt5::moc IMPORTED )
6
+ set_target_properties (Qt5::moc PROPERTIES IMPORTED_LOCATION ${QT_MOC_EXECUTABLE} )
7
+ endif ()
7
8
set (CMAKE_AUTOMOC ON )
8
9
9
- set (QT_RCC_EXECUTABLE "C:/qt/5.5/msvc2013/bin/rcc.exe" )
10
- add_executable (Qt5::rcc IMPORTED )
11
- set_target_properties (Qt5::rcc PROPERTIES IMPORTED_LOCATION ${QT_RCC_EXECUTABLE} )
10
+ if (DEFINED QT_RCC_EXECUTABLE)
11
+ add_executable (Qt5::rcc IMPORTED )
12
+ set_target_properties (Qt5::rcc PROPERTIES IMPORTED_LOCATION ${QT_RCC_EXECUTABLE} )
13
+ endif ()
12
14
set (CMAKE_AUTORCC ON )
13
15
14
- set (QT_UIC_EXECUTABLE "C:/qt/5.5/msvc2013/bin/uic.exe" )
15
- add_executable (Qt5::uic IMPORTED )
16
- set_target_properties (Qt5::uic PROPERTIES IMPORTED_LOCATION ${QT_UIC_EXECUTABLE} )
16
+ if (DEFINED QT_UIC_EXECUTABLE)
17
+ add_executable (Qt5::uic IMPORTED )
18
+ set_target_properties (Qt5::uic PROPERTIES IMPORTED_LOCATION ${QT_UIC_EXECUTABLE} )
19
+ endif ()
17
20
set (CMAKE_AUTOUIC ON )
18
21
19
22
set (CMAKE_BUILD_TYPE Release)
You can’t perform that action at this time.
0 commit comments