xref: /reactos/dll/win32/scrrun/CMakeLists.txt (revision 682f85ad)
1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
3add_definitions(-D__WINESRC__ -D__ROS_LONG64__)
4spec2def(scrrun.dll scrrun.spec)
5add_idl_headers(scrrun_idlheader scrrun.idl)
6add_typelib(scrrun.idl)
7
8list(APPEND SOURCE
9    dictionary.c
10    filesystem.c
11    scrrun.c)
12
13list(APPEND PCH_SKIP_SOURCE
14    guid.c)
15
16list(APPEND scrrun_rc_deps
17    ${CMAKE_CURRENT_SOURCE_DIR}/scrrun.rgs
18    ${CMAKE_CURRENT_SOURCE_DIR}/scrrun_tlb.rgs
19    ${CMAKE_CURRENT_BINARY_DIR}/scrrun.tlb)
20
21set_source_files_properties(scrrun.rc PROPERTIES OBJECT_DEPENDS "${scrrun_rc_deps}")
22
23add_library(scrrun MODULE
24    ${SOURCE}
25    ${PCH_SKIP_SOURCE}
26    scrrun.rc
27    ${CMAKE_CURRENT_BINARY_DIR}/scrrun_stubs.c
28    ${CMAKE_CURRENT_BINARY_DIR}/scrrun.def)
29
30add_dependencies(scrrun scrrun_idlheader stdole2)
31set_module_type(scrrun win32dll)
32target_link_libraries(scrrun uuid wine)
33add_importlibs(scrrun oleaut32 version advapi32 msvcrt kernel32 ntdll)
34add_pch(scrrun precomp.h "${PCH_SKIP_SOURCE}")
35add_cd_file(TARGET scrrun DESTINATION reactos/system32 FOR all)
36