mirror of
https://github.com/reactos/reactos.git
synced 2024-08-18 09:28:36 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
25 lines
651 B
CMake
25 lines
651 B
CMake
|
|
spec2def(syssetup.dll syssetup.spec)
|
|
|
|
list(APPEND SOURCE
|
|
classinst.c
|
|
dllmain.c
|
|
install.c
|
|
logfile.c
|
|
proppage.c
|
|
security.c
|
|
wizard.c
|
|
precomp.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/syssetup_stubs.c)
|
|
|
|
add_library(syssetup MODULE
|
|
${SOURCE}
|
|
syssetup.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/syssetup.def)
|
|
|
|
add_pch(syssetup precomp.h SOURCE)
|
|
set_module_type(syssetup win32dll UNICODE)
|
|
target_link_libraries(syssetup uuid wine ${PSEH_LIB})
|
|
add_importlibs(syssetup advapi32 gdi32 user32 samlib userenv comctl32 setupapi ole32 shell32 shlwapi msvcrt kernel32 ntdll)
|
|
add_cd_file(TARGET syssetup DESTINATION reactos/system32 FOR all)
|