1 2 3 4
add_library(outlib outlib.c) add_executable(outexe outexe.c) target_link_libraries(outexe subdir)