turn off automoc for non qt projects
This commit is contained in:
parent
d28634dc1c
commit
ed3c8efcf3
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue