diff --git a/.gitignore b/.gitignore index eb15581..49fbd17 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,7 @@ Thumbs.db *.rc /.qmake.cache /.qmake.stash +compile_commands.json # qtcreator generated files *.pro.user* diff --git a/CMakeLists.txt b/CMakeLists.txt index bcc5714..51e95bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,10 @@ project(Solitare VERSION 0.1 LANGUAGES CXX) set(CMAKE_CXX_STANDARD_REQUIRED ON) -find_package(Qt6 6.5 REQUIRED COMPONENTS Quick) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +set(QT_QML_GENERATE_QMLLS_INI ON) +find_package(Qt6 6.5 REQUIRED COMPONENTS Quick) qt_standard_project_setup(REQUIRES 6.5) set(CMAKE_AUTORCC ON)