master
txt 24 lines 811 Bytes
Raw
1 set(SOURCES
2 ServiceMain.cpp
3 WslInstallerFactory.cpp
4 WslInstaller.cpp
5 main.rc)
6
7 set (HEADERS
8 WslInstallerFactory.h
9 WslInstaller.h)
10
11 include_directories(${CMAKE_BINARY_DIR}/src/windows/wslinstaller/inc/${TARGET_PLATFORM}/${CMAKE_BUILD_TYPE})
12
13 add_executable(wslinstaller ${SOURCES} ${HEADERS})
14 add_dependencies(wslinstaller wslinstalleridl)
15
16 set_target_properties(wslinstaller PROPERTIES LINK_FLAGS "/merge:minATL=.rdata /include:__minATLObjMap_WslInstaller_COM")
17 target_link_libraries(wslinstaller
18 ${COMMON_LINK_LIBRARIES}
19 ${MSI_LINK_LIBRARIES}
20 common
21 legacy_stdio_definitions)
22
23 target_precompile_headers(wslinstaller REUSE_FROM common)
24 set_target_properties(wslinstaller PROPERTIES FOLDER windows)