| 1 | set(SOURCES |
| 2 | DllMain.cpp |
| 3 | WslCoreConfigInterface.cpp) |
| 4 | |
| 5 | add_library(libwsl SHARED ${SOURCES} libwsl.def) |
| 6 | |
| 7 | target_include_directories(libwsl |
| 8 | PUBLIC ${CMAKE_CURRENT_LIST_DIR}) |
| 9 | |
| 10 | set_target_properties(libwsl PROPERTIES FOLDER windows) |
| 11 | target_precompile_headers(libwsl REUSE_FROM common) |
| 12 | |
| 13 | target_link_libraries(libwsl |
| 14 | ${COMMON_LINK_LIBRARIES} |
| 15 | common |
| 16 | configfile |
| 17 | legacy_stdio_definitions |
| 18 | VirtDisk.lib |
| 19 | delayimp.lib) |
| 20 | |
| 21 | set_target_properties(libwsl PROPERTIES LINK_FLAGS "/DELAYLOAD:msi.dll /DELAYLOAD:WINTRUST.dll") |