project(foo) add_executable(foo foo.cxx) target_link_libraries(foo bar)