diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cab039e..0d3acfb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -107,6 +107,34 @@ target_link_libraries(libinputactions PUBLIC target_compile_definitions(libinputactions PUBLIC TEST_VIRTUAL=$,virtual,>) target_include_directories(libinputactions PRIVATE libinputactions libinputactions/. ${LIBEVDEV_INCLUDE_DIRS}) set_target_properties(libinputactions PROPERTIES PREFIX "") - target_link_libraries(libinputactions PRIVATE yaml-cpp) target_compile_options(libinputactions PUBLIC -fexceptions -fPIC) +target_precompile_headers(libinputactions + PUBLIC + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" +) \ No newline at end of file diff --git a/tests/libinputactions/CMakeLists.txt b/tests/libinputactions/CMakeLists.txt index ce4fb83..30d290a 100644 --- a/tests/libinputactions/CMakeLists.txt +++ b/tests/libinputactions/CMakeLists.txt @@ -8,6 +8,13 @@ target_link_libraries(inputactions-test PUBLIC libinputactions Qt::Test ) +target_precompile_headers(inputactions-test + PUBLIC + + + Test.h + utils.h +) macro(libinputactions_add_test TARGET_NAME) set(options) @@ -21,6 +28,7 @@ macro(libinputactions_add_test TARGET_NAME) inputactions-test GTest::gmock_main ) + target_precompile_headers(${TARGET_NAME} REUSE_FROM inputactions-test) endmacro() libinputactions_add_test(TestAction SOURCES actions/TestAction.cpp)