mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 10:14:44 +00:00

- build msvc importlibs explicitly from def file - circumvent lack of pseh lib in MSVC. - fix advapi32.def svn path=/branches/cmake-bringup/; revision=49409
39 lines
555 B
CMake
39 lines
555 B
CMake
|
|
set_unicode()
|
|
|
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
|
|
|
spec2def(syssetup.dll syssetup.spec)
|
|
|
|
add_library(syssetup SHARED
|
|
classinst.c
|
|
dllmain.c
|
|
install.c
|
|
logfile.c
|
|
wizard.c
|
|
syssetup.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/syssetup.def)
|
|
|
|
set_module_type(syssetup win32dll)
|
|
|
|
target_link_libraries(syssetup
|
|
uuid
|
|
${PSEH_LIB})
|
|
|
|
add_importlibs(syssetup
|
|
msvcrt
|
|
advapi32
|
|
gdi32
|
|
user32
|
|
samlib
|
|
userenv
|
|
comctl32
|
|
setupapi
|
|
ole32
|
|
shell32
|
|
shlwapi
|
|
kernel32
|
|
ntdll)
|
|
|
|
|
|
add_cab_target(syssetup 1)
|