aboutsummaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
blob: c182e373a3f63e39eae4f2f9a5dfc1f2db1224a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
function(nw_example example)
    add_executable(nw_${example} ${example}.c)
    target_link_libraries(nw_${example} PRIVATE ${PROJECT_NAME})
    install(TARGETS nw_${example})
    target_compile_options(nw_${example} PRIVATE ${sup_cflags})
endfunction()

nw_example(minimal)
nw_example(proc_exit)
nw_example(file)