reactos/drivers/wmi/CMakeLists.txt
Jérôme Gardou 1d2b1c4a24 [CMAKE]
- Get rid of buildno_header target, builno.h is generated at configure time.

svn path=/branches/cmake-bringup/; revision=51220
2011-04-01 17:34:49 +00:00

28 lines
679 B
CMake

spec2def(wmilib.sys wmilib.spec)
list(APPEND SOURCE
wmilib.c
wmilib.rc
${CMAKE_CURRENT_BINARY_DIR}/wmilib.def)
add_library(wmilib SHARED ${SOURCE})
if(NOT MSVC)
set_module_type(wmilib kernelmodedriver)
else()
set_target_properties(wmilib PROPERTIES SUFFIX ".sys")
set_subsystem(wmilib native)
set_image_base(wmilib 0x00010000)
add_linkerflag(wmilib "/DRIVER")
add_dependencies(wmilib bugcodes)
target_link_libraries(wmilib msvcsup)
add_dependencies(wmilib psdk)
endif()
set_entrypoint(wmilib 0)
set_target_properties(wmilib PROPERTIES SUFFIX ".sys")
add_importlibs(wmilib ntoskrnl)
add_importlib_target(wmilib.spec)
add_cab_target(wmilib 2)