reactos/dll/win32/winsta/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

26 lines
536 B
CMake

spec2def(winsta.dll winsta.spec)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
list(APPEND SOURCE
logon.c
main.c
misc.c
query.c
security.c
server.c
ws.c
winsta.h)
add_library(winsta MODULE
${SOURCE}
winsta.rc
${CMAKE_CURRENT_BINARY_DIR}/winsta.def)
set_module_type(winsta win32dll)
target_link_libraries(winsta wine)
add_importlibs(winsta msvcrt kernel32 ntdll)
add_pch(winsta winsta.h SOURCE)
add_cd_file(TARGET winsta DESTINATION reactos/system32 FOR all)