mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 01:00:06 +00:00
c702cc0d5a
Generalize CMAKE_C_CREATE_SHARED_LIBRARY and remove per project instances. Thanks to Amine for regexxer tool discovery ;) svn path=/branches/cmake-bringup/; revision=48804
30 lines
664 B
CMake
30 lines
664 B
CMake
|
|
|
|
|
|
add_definitions(-DUNICODE -D_UNICODE)
|
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
|
add_definitions(-DLANGPACK)
|
|
|
|
include_directories(include)
|
|
|
|
file(GLOB_RECURSE SOURCE *.c)
|
|
|
|
add_library(gdi32 SHARED
|
|
${SOURCE}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/gdi32.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/gdi32_precomp.h.gch)
|
|
|
|
set_target_properties(gdi32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
|
|
|
target_link_libraries(gdi32
|
|
${CMAKE_CURRENT_SOURCE_DIR}/gdi32.def
|
|
-luser32
|
|
-ladvapi32
|
|
win32ksys
|
|
dxguid
|
|
pseh
|
|
-lkernel32
|
|
-lntdll)
|
|
|
|
add_pch(gdi32 ${CMAKE_CURRENT_SOURCE_DIR}/include/precomp.h ${SOURCE})
|
|
add_dependencies(gdi32 psdk)
|