OpenBSD-Unofficial-Ports/net-libssq/patches/patch-CMakeLists_txt
2025-02-25 20:20:43 -06:00

14 lines
465 B
Plaintext

Index: CMakeLists.txt
--- CMakeLists.txt.orig Tue Feb 25 19:07:00 2025
+++ CMakeLists.txt Tue Feb 25 19:18:49 2025
@@ -20,4 +20,9 @@ target_sources(ssq PUBLIC FILE_SET HEADERS BASE_DIRS i
add_subdirectory(src)
add_subdirectory(include)
+add_executable(ssq-demo example/example.c)
+target_link_libraries(ssq-demo ssq)
+set_target_properties(ssq-demo PROPERTIES OUTPUT_NAME ssq)
+
install(TARGETS ssq LIBRARY FILE_SET HEADERS)
+install(TARGETS ssq-demo RUNTIME)