summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/LinkWhatYouUse/C.cmake
blob: f00db305720faf9bd7399ae16c12d73ec81e9c25 (plain)
1
2
3
4
5
enable_language(C)
set(CMAKE_LINK_WHAT_YOU_USE TRUE)
add_executable(main main.c)
target_link_libraries(main m)
add_library(foo STATIC foo.c)