reactos/sdk/lib/3rdparty/bzip2/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
512 B
CMake

add_definitions(-DBZ_NO_STDIO -DBZ_DECOMPRESS_ONLY)
spec2def(unbzip2.sys unbzip2.spec)
list(APPEND SOURCE
bzlib.c
randtable.c
crctable.c
decompress.c
huffman.c
dllmain.c
bzlib_private.h)
add_library(bzip2 MODULE
${SOURCE}
${CMAKE_CURRENT_BINARY_DIR}/unbzip2.def)
set_module_type(bzip2 kernelmodedriver)
add_importlibs(bzip2 ntoskrnl)
target_link_libraries(bzip2 libcntpr)
add_pch(bzip2 bzlib_private.h SOURCE)
set_target_properties(bzip2 PROPERTIES OUTPUT_NAME "unbzip2")