reactos/dll/cpl/console/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

29 lines
705 B
CMake

include_directories(
${REACTOS_SOURCE_DIR}/win32ss/user/winsrv/concfg)
spec2def(console.dll console.spec)
list(APPEND SOURCE
console.c
options.c
font.c
layout.c
colors.c
utils.c
console.h)
add_rc_deps(console.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/terminal.ico)
add_library(console MODULE
${SOURCE}
console.rc
${CMAKE_CURRENT_BINARY_DIR}/console.def)
set_module_type(console cpl UNICODE)
set_target_properties(console PROPERTIES SUFFIX ".dll")
target_link_libraries(console concfg)
add_importlibs(console advapi32 user32 gdi32 comctl32 msvcrt kernel32 ntdll)
add_pch(console console.h SOURCE)
add_cd_file(TARGET console DESTINATION reactos/system32 FOR all)