| 1 | set(SOURCES |
| 2 | localhost.cpp |
| 3 | main.cpp |
| 4 | main.rc) |
| 5 | |
| 6 | set(HEADERS |
| 7 | localhost.h |
| 8 | resource.h) |
| 9 | |
| 10 | add_executable(wslrelay WIN32 ${SOURCES} ${HEADERS}) |
| 11 | add_dependencies(wslrelay |
| 12 | common) |
| 13 | |
| 14 | target_link_libraries(wslrelay |
| 15 | ${COMMON_LINK_LIBRARIES} |
| 16 | common |
| 17 | delayimp.lib) |
| 18 | |
| 19 | set_target_properties(wslrelay PROPERTIES LINK_FLAGS "/DELAYLOAD:msi.dll /DELAYLOAD:WINTRUST.dll") |
| 20 | |
| 21 | target_precompile_headers(wslrelay REUSE_FROM common) |
| 22 | set_target_properties(wslrelay PROPERTIES FOLDER windows) |