mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 12:53:33 +00:00
23373acbb9
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.
21 lines
548 B
CMake
21 lines
548 B
CMake
|
|
spec2def(newdev.dll newdev.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
newdev.c
|
|
stubs.c
|
|
wizard.c
|
|
newdev_private.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/newdev_stubs.c)
|
|
|
|
add_library(newdev MODULE
|
|
${SOURCE}
|
|
newdev.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/newdev.def)
|
|
|
|
set_module_type(newdev win32dll UNICODE)
|
|
target_link_libraries(newdev wine)
|
|
add_importlibs(newdev gdi32 comctl32 setupapi advapi32 user32 shell32 msvcrt kernel32 ntdll)
|
|
add_pch(newdev newdev_private.h SOURCE)
|
|
add_cd_file(TARGET newdev DESTINATION reactos/system32 FOR all)
|