1
2include_directories(BEFORE include)
3
4list(APPEND SOURCE
5    config.cpp
6    error.cpp
7    http.cpp
8    httpd.cpp
9    roshttpd.cpp
10    common/list.cpp
11    common/socket.cpp
12    common/thread.cpp)
13
14add_executable(roshttpd ${SOURCE} common/roshttpd.rc)
15target_link_libraries(roshttpd cppstl)
16set_target_cpp_properties(roshttpd WITH_EXCEPTIONS)
17target_compile_definitions(roshttpd PRIVATE __USE_W32_SOCKETS)
18set_module_type(roshttpd win32cui)
19add_importlibs(roshttpd user32 ws2_32 msvcrt kernel32)
20add_cd_file(TARGET roshttpd DESTINATION reactos/system32 FOR all)
21