mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +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
537 B
CMake
20 lines
537 B
CMake
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
add_definitions(-D__WINESRC__)
|
|
spec2def(twain_32.dll twain_32.spec)
|
|
|
|
list(APPEND SOURCE
|
|
dsm_ctrl.c
|
|
twain32_main.c
|
|
precomp.h)
|
|
|
|
add_library(twain_32 MODULE
|
|
${SOURCE}
|
|
twain_32.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/twain_32.def)
|
|
|
|
set_module_type(twain_32 win32dll)
|
|
target_link_libraries(twain_32 wine)
|
|
add_importlibs(twain_32 user32 msvcrt kernel32 ntdll)
|
|
add_pch(twain_32 precomp.h SOURCE)
|
|
add_cd_file(TARGET twain_32 DESTINATION reactos FOR all)
|