[CMAKE]
[reactos.git] / dll / win32 / gdi32 / 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>")
3
4 add_definitions(-DUNICODE -D_UNICODE)
5 add_definitions(-D_DLL -D__USE_CRTIMP)
6 add_definitions(-DLANGPACK)
7
8 include_directories(include)
9
10 file(GLOB_RECURSE SOURCE *.c)
11
12 add_library(gdi32 SHARED
13 ${SOURCE}
14 ${CMAKE_CURRENT_SOURCE_DIR}/gdi32.rc
15 ${CMAKE_CURRENT_BINARY_DIR}/gdi32_precomp.h.gch)
16
17 set_target_properties(gdi32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
18
19 target_link_libraries(gdi32
20 ${CMAKE_CURRENT_SOURCE_DIR}/gdi32.def
21 ${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a
22 ${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a
23 win32ksys
24 dxguid
25 pseh
26 ${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a
27 ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
28
29 add_pch(gdi32 ${CMAKE_CURRENT_SOURCE_DIR}/include/precomp.h ${SOURCE})
30 add_dependencies(gdi32 psdk)