Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1733 Auto Qt #1772

Merged
merged 11 commits into from
Feb 11, 2024
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,13 @@ if(GUI)
endif()
add_definitions(-DQT_NO_KEYWORDS)

# Make sure CMake won't try to generate rules for moc (we will do it ourselves)
# Make sure we enable automated handling of Qt files
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

# Set policy for automatic linkage of Qt libs to project
cmake_policy(SET CMP0020 NEW)
# Disable Qt macros
add_definitions(-DQT_NO_KEYWORDS)
endif(GUI)

# Perform system-specific setup -- Windows
Expand Down Expand Up @@ -227,6 +229,7 @@ if(GUI)
${gui_target_name}
PRIVATE ${PROJECT_SOURCE_DIR}/src
${PROJECT_BINARY_DIR}/src
${CMAKE_BINARY_DIR}/src/gui/gui_autogen/include
${FREETYPE_INCLUDE_DIRS}
${Qt6Core_INCLUDE_DIRS}
${Qt6Gui_INCLUDE_DIRS}
Expand Down
Loading
Loading