Add ability to disable precompiled headers with CMake (#2727)

This commit is contained in:
pajlada
2021-05-08 15:57:00 +02:00
committed by GitHub
parent 6f6ccb8c2f
commit 2f49b23875
68 changed files with 164 additions and 5 deletions
+3 -1
View File
@@ -476,7 +476,9 @@ source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${SOURCE_FILES})
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
add_sanitizers(${PROJECT_NAME})
target_precompile_headers(${PROJECT_NAME} PRIVATE PrecompiledHeader.hpp)
if (USE_PRECOMPILED_HEADERS)
target_precompile_headers(${PROJECT_NAME} PRIVATE PrecompiledHeader.hpp)
endif ()
# Enable autogeneration of Qts MOC/RCC/UIC
set_target_properties(${PROJECT_NAME}