mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 18:24:02 +00:00

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
22 lines
527 B
CMake
22 lines
527 B
CMake
|
|
|
|
|
|
add_definitions(-DUNICODE -D_UNICODE)
|
|
|
|
list(APPEND SOURCE hid.c stubs.c hid.rc)
|
|
|
|
spec2def(hid ${CMAKE_CURRENT_SOURCE_DIR}/hid.spec ${CMAKE_CURRENT_BINARY_DIR}/hid.def)
|
|
|
|
add_library(hid SHARED
|
|
${SOURCE}
|
|
${CMAKE_CURRENT_BINARY_DIR}/hid_precomp.h.gch)
|
|
|
|
set_target_properties(hid PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
|
|
|
target_link_libraries(hid
|
|
${CMAKE_CURRENT_BINARY_DIR}/hid.def
|
|
-lkernel32
|
|
-lntdll)
|
|
|
|
add_pch(hid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
|
add_dependencies(hid hid_def psdk)
|