turn off automoc for non qt projects

This commit is contained in:
rjindael 2023-07-08 18:43:03 -07:00
parent d28634dc1c
commit ed3c8efcf3
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
4 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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()

View File

@ -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

View File

@ -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