[CMAKE]
[reactos.git] / dll / win32 / msvidc32 / CMakeLists.txt
1
2 set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
3
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 add_definitions(-D__WINESRC__)
7 add_definitions(-D_WINE)
8
9 spec2def(msvidc32 ${CMAKE_CURRENT_SOURCE_DIR}/msvidc32.spec ${CMAKE_CURRENT_BINARY_DIR}/msvidc32.def)
10
11 add_library(msvidc32 SHARED msvideo1.c rsrc.rc)
12
13 set_target_properties(msvidc32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
14
15 target_link_libraries(msvidc32
16 ${CMAKE_CURRENT_BINARY_DIR}/msvidc32.def
17 wine
18 -luser32
19 mingw_common)
20
21 add_dependencies(msvidc32 msvidc32_def psdk)