[CMAKE]
[reactos.git] / dll / win32 / rasapi32 / 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
8 spec2def(rasapi32 ${CMAKE_CURRENT_SOURCE_DIR}/rasapi32.spec ${CMAKE_CURRENT_BINARY_DIR}/rasapi32.def)
9
10 add_library(rasapi32 SHARED rasapi.c)
11
12 set_target_properties(rasapi32 PROPERTIES LINK_FLAGS "-Wl,-entry,0")
13
14 target_link_libraries(rasapi32
15 ${CMAKE_CURRENT_BINARY_DIR}/rasapi32.def
16 wine
17 mingw_common)
18
19 add_dependencies(rasapi32 rasapi32_def psdk)