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

- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
39 lines
640 B
CMake
39 lines
640 B
CMake
|
|
set_unicode()
|
|
|
|
spec2def(sysdm.cpl sysdm.spec)
|
|
|
|
list(APPEND SOURCE
|
|
advanced.c
|
|
environment.c
|
|
general.c
|
|
hardprof.c
|
|
hardware.c
|
|
licence.c
|
|
startrec.c
|
|
sysdm.c
|
|
userprofile.c
|
|
virtmem.c
|
|
sysdm.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/sysdm.def)
|
|
|
|
add_library(sysdm SHARED ${CMAKE_CURRENT_BINARY_DIR}/sysdm_precomp.h.gch ${SOURCE})
|
|
|
|
set_module_type(sysdm cpl)
|
|
|
|
add_importlibs(sysdm
|
|
msvcrt
|
|
advapi32
|
|
setupapi
|
|
user32
|
|
gdi32
|
|
comctl32
|
|
msimg32
|
|
shell32
|
|
shlwapi
|
|
ole32
|
|
powrprof
|
|
kernel32)
|
|
|
|
add_pch(sysdm ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
|
add_cab_target(sysdm 1)
|