Last active
December 18, 2020 21:53
-
-
Save dgovil/852777eca16bfbabac224b50e6d8d739 to your computer and use it in GitHub Desktop.
Configuring Qt for Maya moc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do some setup for Maya's Qt | |
set(QT_VERSION_MAJOR 5) | |
# Set moc Path | |
set(QT_MOC_EXECUTABLE ${MAYA_BIN_PATH}/moc) | |
add_executable(Qt5::moc IMPORTED) | |
set_target_properties(Qt5::moc PROPERTIES IMPORTED_LOCATION ${QT_MOC_EXECUTABLE}) | |
set(CMAKE_AUTOMOC TRUE) | |
# Set the UIC Path | |
set(QT_UIC_EXECUTABLE ${MAYA_BIN_PATH}/uic) | |
add_executable(Qt5::uic IMPORTED) | |
set_target_properties(Qt5::uic PROPERTIES IMPORTED_LOCATION ${QT_UIC_EXECUTABLE}) | |
set(CMAKE_AUTOUIC TRUE) | |
# Set the RCC Path | |
set(QT_RCC_EXECUTABLE ${MAYA_BIN_PATH}/rcc) | |
add_executable(Qt5::rcc IMPORTED) | |
set_target_properties(Qt5::rcc PROPERTIES IMPORTED_LOCATION ${QT_RCC_EXECUTABLE}) | |
set(CMAKE_AUTORCC TRUE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment