reactos/drivers/wmi/CMakeLists.txt
Sylvain Petreolle c702cc0d5a [CMAKE]
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
2010-09-18 15:22:08 +00:00

15 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)