diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-01-29 21:33:34 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-01-29 21:33:34 -0500 |
commit | 5a6f8cac09770d315fe4a3258fa6116e65750f24 (patch) | |
tree | d74c5407e4ba9b11700666ce1eed0c94984ae14a /CMakeLists.txt | |
parent | ff47134dc64ac2f0fa7bfee64313b2522709b9b9 (diff) | |
download | abaddon-portaudio-5a6f8cac09770d315fe4a3258fa6116e65750f24.tar.gz abaddon-portaudio-5a6f8cac09770d315fe4a3258fa6116e65750f24.zip |
first pass compile time optimization
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a9e17a..9d57239 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,8 @@ target_include_directories(abaddon PUBLIC ${ZLIB_INCLUDE_DIRS}) target_include_directories(abaddon PUBLIC ${SQLite3_INCLUDE_DIRS}) target_include_directories(abaddon PUBLIC ${NLOHMANN_JSON_INCLUDE_DIRS}) +target_precompile_headers(abaddon PRIVATE <gtkmm.h> src/abaddon.hpp src/util.hpp) + if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND ((CMAKE_SYSTEM_NAME STREQUAL "Linux") OR (CMAKE_CXX_COMPILER_VERSION LESS 9)))) |