+spec2def(lz32.dll lz32.spec)
+
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_library(lz32 SHARED version.rc lz32.def)
-
-if(NOT MSVC)
- set_source_files_properties(lz32.def PROPERTIES EXTERNAL_OBJECT TRUE)
-endif()
+add_library(lz32 SHARED
+ version.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/lz32.def)
set_entrypoint(lz32 0)
add_importlibs(lz32 kernel32 ntdll)
add_dependencies(lz32 psdk buildno_header)
-add_cab_target(lz32 1)
\ No newline at end of file
+add_cab_target(lz32 1)
+add_importlib_target(lz32.spec)