diff --git a/CMakeLists.txt b/CMakeLists.txt index 96f53da..2162768 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,6 @@ option(COMPILE_SERVER "Compile the RNR server" ON) set(DEPENDENCIES_DIR ${CMAKE_SOURCE_DIR}/Dependencies) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes") # Ignore attribute warnings generated by Luau -set(CMAKE_AUTOMOC ON) # Enable Qt's automatic meta-object compiler find_package(Boost REQUIRED) find_package(cglm REQUIRED CONFIG) diff --git a/Projects/Client/Common/CMakeLists.txt b/Projects/Client/Common/CMakeLists.txt index 8680259..ee6a85b 100644 --- a/Projects/Client/Common/CMakeLists.txt +++ b/Projects/Client/Common/CMakeLists.txt @@ -2,6 +2,7 @@ add_subdirectory(${DEPENDENCIES_DIR}/GLAD ${CMAKE_BINARY_DIR}/Dependencies/GLAD) project(Common) +set(CMAKE_AUTOMOC ON) set(QT6_LIBRARIES_INCL Qt6::Core Qt6::Gui Qt6::Widgets Qt6::OpenGLWidgets GLAD) qt_standard_project_setup() diff --git a/Projects/Client/Player/CMakeLists.txt b/Projects/Client/Player/CMakeLists.txt index 6e18569..6acc0b8 100644 --- a/Projects/Client/Player/CMakeLists.txt +++ b/Projects/Client/Player/CMakeLists.txt @@ -2,6 +2,8 @@ project(Player) create_resources(Resource ${CMAKE_BINARY_DIR}/Resources/PlayerResources.hpp) +set(CMAKE_AUTOMOC ON) + qt_add_executable(Player ${CMAKE_BINARY_DIR}/Resources/PlayerResources.hpp diff --git a/Projects/Client/Studio/CMakeLists.txt b/Projects/Client/Studio/CMakeLists.txt index 05c3faa..b2b199c 100644 --- a/Projects/Client/Studio/CMakeLists.txt +++ b/Projects/Client/Studio/CMakeLists.txt @@ -2,6 +2,8 @@ project(Studio) create_resources(Resource ${CMAKE_BINARY_DIR}/Resources/StudioResources.hpp) +set(CMAKE_AUTOMOC ON) + qt_add_executable(Studio ${CMAKE_BINARY_DIR}/Resources/StudioResources.hpp