reactos/win32ss/drivers/font/ftfd/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

24 lines
570 B
CMake

include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/freetype/include)
spec2def(ftfd.dll ftfd.spec ADD_IMPORTLIB)
list(APPEND SOURCE
enable.c
font.c
glyph.c
rosglue.c
ftfd.h)
add_library(ftfd MODULE
${SOURCE}
sprintf.c
freetype.rc
${CMAKE_CURRENT_BINARY_DIR}/ftfd.def)
set_module_type(ftfd kerneldll ENTRYPOINT FtfdEnableDriver 12)
target_link_libraries(ftfd freetype libcntpr)
add_pch(ftfd ftfd.h SOURCE)
add_importlibs(ftfd win32k)
add_dependencies(ftfd psdk)
add_cd_file(TARGET ftfd DESTINATION reactos/system32 FOR all)