[CMAKE]
[reactos.git] / dll / win32 / olesvr32 / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
3 add_definitions(-D__WINESRC__)
4
5 spec2def(olesvr32.dll olesvr32.spec)
6
7 list(APPEND SOURCE
8 olesvr_main.c
9 ${CMAKE_CURRENT_BINARY_DIR}/olesvr32_stubs.c
10 ${CMAKE_CURRENT_BINARY_DIR}/olesvr32.def)
11
12 add_library(olesvr32 SHARED ${SOURCE})
13
14 set_entrypoint(olesvr32 0)
15
16 target_link_libraries(olesvr32
17 wine
18 mingw_common)
19
20 add_importlibs(olesvr32 kernel32 ntdll)
21 add_dependencies(olesvr32 psdk)
22 add_cd_file(TARGET olesvr32 DESTINATION reactos/system32 FOR all)