mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 07:00:19 +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.
20 lines
529 B
CMake
20 lines
529 B
CMake
|
|
spec2def(deskmon.dll deskmon.spec)
|
|
|
|
list(APPEND SOURCE
|
|
deskmon.c
|
|
shxiface.c
|
|
precomp.h)
|
|
|
|
add_rc_deps(deskmon.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/monitor.ico)
|
|
|
|
add_library(deskmon MODULE
|
|
${SOURCE}
|
|
deskmon.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/deskmon.def)
|
|
|
|
set_module_type(deskmon win32dll UNICODE)
|
|
target_link_libraries(deskmon uuid)
|
|
add_importlibs(deskmon user32 gdi32 comctl32 ole32 msvcrt kernel32 ntdll)
|
|
add_pch(deskmon precomp.h SOURCE)
|
|
add_cd_file(TARGET deskmon DESTINATION reactos/system32 FOR all)
|