mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 10:23:22 +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.
15 lines
398 B
CMake
15 lines
398 B
CMake
|
|
spec2def(kdcom.dll kdrosdbg.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
kdrosdbg.c
|
|
kdrosdbg.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
|
|
|
|
add_library(kdcom MODULE ${SOURCE})
|
|
set_module_type(kdcom kerneldll ENTRYPOINT 0)
|
|
add_importlibs(kdcom ntoskrnl hal)
|
|
target_link_libraries(kdcom cportlib)
|
|
add_dependencies(kdcom psdk)
|
|
add_cd_file(TARGET kdcom DESTINATION reactos/system32 NO_CAB FOR all)
|