mirror of
https://github.com/reactos/reactos.git
synced 2024-11-24 20:13:31 +08: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.
34 lines
763 B
CMake
34 lines
763 B
CMake
|
|
spec2def(sysdm.cpl sysdm.spec)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/udmihelp)
|
|
|
|
list(APPEND SOURCE
|
|
advanced.c
|
|
environment.c
|
|
general.c
|
|
hardprof.c
|
|
hardware.c
|
|
licence.c
|
|
smbios.c
|
|
startrec.c
|
|
sysdm.c
|
|
userprofile.c
|
|
virtmem.c
|
|
precomp.h)
|
|
|
|
file(GLOB sysdm_rc_deps resources/*.*)
|
|
add_rc_deps(sysdm.rc ${sysdm_rc_deps})
|
|
|
|
add_library(sysdm MODULE
|
|
${SOURCE}
|
|
sysdm.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/sysdm.def)
|
|
|
|
set_module_type(sysdm cpl UNICODE)
|
|
target_link_libraries(sysdm udmihelp)
|
|
add_importlibs(sysdm advapi32 setupapi user32 gdi32 comctl32 msimg32 shell32 shlwapi ole32 powrprof msvcrt kernel32 ntdll)
|
|
add_pch(sysdm precomp.h SOURCE)
|
|
add_cd_file(TARGET sysdm DESTINATION reactos/system32 FOR all)
|