include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_library(sti SHARED
+spec2def(sti.dll sti.spec)
+
+list(APPEND SOURCE
regsvr.c
sti.c
sti_main.c
- sti_wia.idl
- sti.def)
+ ${CMAKE_CURRENT_BINARY_DIR}/sti.def)
+
+add_rpcproxy_library(stiproxy sti_wia.idl)
-if(NOT MSVC)
- set_source_files_properties(sti.def PROPERTIES EXTERNAL_OBJECT TRUE)
-endif()
+add_library(sti SHARED ${SOURCE})
set_entrypoint(sti 0)
target_link_libraries(sti
- sti_proxy
+ stiproxy
wine
uuid
${PSEH_LIB})
kernel32
ntdll)
-rpcproxy(sti sti_wia.idl)
-add_cab_target(sti 1)
+add_cd_file(TARGET sti DESTINATION reactos/system32)