[CMAKE]
[reactos.git] / dll / win32 / mpr / 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 add_definitions(-D__WINESRC__)
5 add_definitions(-D_WINE)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9 spec2def(mpr ${CMAKE_CURRENT_SOURCE_DIR}/mpr.spec ${CMAKE_CURRENT_BINARY_DIR}/mpr.def)
10
11 add_library(mpr SHARED
12 auth.c
13 mpr_main.c
14 multinet.c
15 nps.c
16 pwcache.c
17 wnet.c
18 mpr.rc)
19
20 set_target_properties(mpr PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
21
22 target_link_libraries(mpr
23 ${CMAKE_CURRENT_BINARY_DIR}/mpr.def
24 wine
25 mingw_common
26 -ladvapi32
27 -luser32)
28
29 add_dependencies(mpr mpr_def psdk)