reactos/dll/nls/normaliz/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

18 lines
500 B
CMake

remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
spec2def(normaliz.dll normaliz.spec ADD_IMPORTLIB)
list(APPEND SOURCE
IdnToAscii.c
IdnToUnicode.c
nameprep.c
normalize.c
${CMAKE_CURRENT_BINARY_DIR}/normaliz.def)
add_library(normaliz MODULE ${SOURCE})
set_module_type(normaliz win32dll ENTRYPOINT 0)
add_importlibs(normaliz msvcrt kernel32 ntdll)
add_cd_file(TARGET normaliz DESTINATION reactos/system32 FOR all)