reactos/dll/appcompat/shims/layer/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
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.
2019-04-06 17:43:38 +02:00

23 lines
517 B
CMake

include_directories(${SHIMLIB_DIR})
spec2def(aclayers.dll layer.spec)
list(APPEND SOURCE
dispmode.c
forcedxsetupsuccess.c
ignoreloadlibrary.c
versionlie.c
vmhorizon.c
main.c
layer.spec)
add_library(aclayers MODULE
${SOURCE}
${CMAKE_CURRENT_BINARY_DIR}/aclayers.def)
set_module_type(aclayers win32dll ENTRYPOINT DllMain 12)
target_link_libraries(aclayers shimlib)
add_importlibs(aclayers user32 kernel32 ntdll)
add_cd_file(TARGET aclayers DESTINATION reactos/AppPatch FOR all)