[CMAKE]
[reactos.git] / dll / win32 / cabinet / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 spec2def(cabinet ${CMAKE_CURRENT_SOURCE_DIR}/cabinet.spec ${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
7
8 list(APPEND SOURCE
9 cabinet_main.c
10 fci.c
11 fdi.c
12 cabinet.rc)
13
14 add_library(cabinet SHARED ${SOURCE})
15
16 set_entrypoint(cabinet 0)
17
18 target_link_libraries(cabinet
19 ${CMAKE_CURRENT_BINARY_DIR}/cabinet.def
20 wine)
21
22 add_importlibs(cabinet kernel32 ntdll)
23 add_dependencies(cabinet cabinet_def psdk buildno_header)
24 add_cab_target(cabinet 1)