CMake: allow installing tests

This commit is contained in:
Mihai Fufezan 2024-10-08 23:44:50 +03:00
parent d60e1e01e6
commit 53a23e4b41
No known key found for this signature in database

View file

@ -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()