From 53a23e4b41b8297700f61f533911fbc657f20347 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Tue, 8 Oct 2024 23:44:50 +0300 Subject: [PATCH] CMake: allow installing tests --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 424aeea..3438cf9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,3 +119,9 @@ install(TARGETS hyprcursor-util) install(DIRECTORY "include/hyprcursor" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(FILES ${CMAKE_BINARY_DIR}/hyprcursor.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + +if(INSTALL_TESTS) + install(TARGETS hyprcursor_test1) + install(TARGETS hyprcursor_test2) + install(TARGETS hyprcursor_test_c) +endif()