Enable project database export via CMake option

This commit is contained in:
Laurent Trinques
2026-08-15 21:06:08 +02:00
parent 2419faf931
commit 610001a847
+5 -4
View File
@@ -25,8 +25,9 @@ add_definitions(-DQET_ALLOW_OVERRIDE_CTBTD_OPTION)
# Comment the line below to deactivate the --config-dir option # Comment the line below to deactivate the --config-dir option
add_definitions(-DQET_ALLOW_OVERRIDE_CD_OPTION) add_definitions(-DQET_ALLOW_OVERRIDE_CD_OPTION)
# Comment the line below to deactivate the --data-dir option # Enable project database export when requested by the build system.
add_definitions(-DQET_ALLOW_OVERRIDE_DD_OPTION) option(QET_EXPORT_PROJECT_DB "Enable project database export" OFF)
#comment the line below to disable the project database export if(QET_EXPORT_PROJECT_DB)
#add_definitions(-DQET_EXPORT_PROJECT_DB) #error Todo add_compile_definitions(QET_EXPORT_PROJECT_DB)
endif()