set(SRC_COMMON utils.c) # configure a header file to pass some of the CMake settings # to the source code configure_file ( "tcpserver.h.in" "${PROJECT_BINARY_DIR}/tcpserver.h" ) add_executable(usi2011jjl main.c tcpserver.c dispatcher.c ${SRC_COMMON} ) #target_link_libraries(usi2011jjl SDL SDL_net SDL_image)