From 41ff5a82d04baab1dc0407f456d85ef1eb4ef9be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Fri, 3 Nov 2023 17:27:41 +0100 Subject: [PATCH] Example: Also link static libraries to executables --- Example/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Example/CMakeLists.txt b/Example/CMakeLists.txt index ee18ce018e..f3c20e95af 100644 --- a/Example/CMakeLists.txt +++ b/Example/CMakeLists.txt @@ -463,3 +463,9 @@ target_link_libraries ( my_demo PUBLIC my ) add_executable ( my_cxx_demo "Demo/my_demo.c" ) target_link_libraries ( my_cxx_demo PUBLIC my_cxx ) + +add_executable ( my_demo_static "Demo/my_demo.c" ) +target_link_libraries ( my_demo_static PUBLIC my_static ) + +add_executable ( my_cxx_demo_static "Demo/my_demo.c" ) +target_link_libraries ( my_cxx_demo_static PUBLIC my_cxx_static )