mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 22: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.
23 lines
519 B
CMake
23 lines
519 B
CMake
|
|
spec2def(main.cpl main.spec)
|
|
|
|
list(APPEND SOURCE
|
|
keyboard.c
|
|
main.c
|
|
mouse.c
|
|
main.h)
|
|
|
|
file(GLOB main_rc_deps resources/*.*)
|
|
add_rc_deps(main.rc ${main_rc_deps})
|
|
|
|
add_library(main MODULE
|
|
${SOURCE}
|
|
main.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/main.def)
|
|
|
|
set_module_type(main cpl UNICODE)
|
|
target_link_libraries(main uuid)
|
|
add_importlibs(main advapi32 user32 comctl32 devmgr comdlg32 shell32 gdi32 msvcrt kernel32)
|
|
add_pch(main main.h SOURCE)
|
|
add_cd_file(TARGET main DESTINATION reactos/system32 FOR all)
|