Don't automoc the entire project - Only the QT UI
This commit is contained in:
parent
038fefd131
commit
5f67083eea
1 changed files with 1 additions and 1 deletions
|
@ -4,8 +4,8 @@ foreach(SRC IN ITEMS ${BACKEND_QT_SRC_BASE})
|
||||||
set(BACKEND_QT_SRC ${BACKEND_QT_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/${SRC})
|
set(BACKEND_QT_SRC ${BACKEND_QT_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/${SRC})
|
||||||
endforeach()
|
endforeach()
|
||||||
set(BACKEND_QT_INC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
set(BACKEND_QT_INC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
add_ui_backend(qt_ui ${BACKEND_QT_SRC})
|
add_ui_backend(qt_ui ${BACKEND_QT_SRC})
|
||||||
|
set_target_properties(qt_ui PROPERTIES AUTOMOC ON)
|
||||||
find_package(Qt6 COMPONENTS Core Gui Widgets)
|
find_package(Qt6 COMPONENTS Core Gui Widgets)
|
||||||
target_link_libraries(qt_ui PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets SDL2::SDL2 fmt::fmt liblooper)
|
target_link_libraries(qt_ui PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets SDL2::SDL2 fmt::fmt liblooper)
|
||||||
target_include_directories(qt_ui PRIVATE ../../..)
|
target_include_directories(qt_ui PRIVATE ../../..)
|
||||||
|
|
Loading…
Reference in a new issue