mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +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.
29 lines
705 B
CMake
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)
|