mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 16:51: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
14 lines
434 B
CMake
14 lines
434 B
CMake
|
|
|
|
|
|
spec2def(wmilib ${CMAKE_CURRENT_SOURCE_DIR}/wmilib.spec ${CMAKE_CURRENT_BINARY_DIR}/wmilib.def)
|
|
|
|
add_library(wmilib SHARED wmilib.c wmilib.rc)
|
|
|
|
set_target_properties(wmilib PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
|
|
|
|
target_link_libraries(wmilib
|
|
${CMAKE_CURRENT_BINARY_DIR}/wmilib.def
|
|
-lntoskrnl)
|
|
|
|
add_dependencies(wmilib wmilib_def psdk buildno_header bugcodes)
|