Skip to content

Commit

Permalink
Example: Also link static libraries to executables
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Nov 4, 2023
1 parent bb2b7b5 commit 41ff5a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

0 comments on commit 41ff5a8

Please sign in to comment.