2010-09-13 13:48:29 +00:00
|
|
|
|
2010-10-30 16:08:19 +00:00
|
|
|
spec2def(wmilib.sys wmilib.spec)
|
2010-09-18 15:22:08 +00:00
|
|
|
|
2010-12-03 11:01:21 +00:00
|
|
|
list(APPEND SOURCE
|
2010-11-04 21:31:33 +00:00
|
|
|
wmilib.c
|
|
|
|
wmilib.rc
|
2010-10-30 16:08:19 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/wmilib.def)
|
2010-09-13 13:48:29 +00:00
|
|
|
|
2010-12-03 11:01:21 +00:00
|
|
|
add_library(wmilib SHARED ${SOURCE})
|
|
|
|
|
2011-02-17 22:12:27 +00:00
|
|
|
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)
|
2011-04-01 17:34:49 +00:00
|
|
|
add_dependencies(wmilib psdk)
|
2011-02-17 22:12:27 +00:00
|
|
|
endif()
|
|
|
|
|
2011-01-10 20:59:17 +00:00
|
|
|
set_entrypoint(wmilib 0)
|
2011-02-15 17:39:00 +00:00
|
|
|
set_target_properties(wmilib PROPERTIES SUFFIX ".sys")
|
2010-10-30 16:08:19 +00:00
|
|
|
add_importlibs(wmilib ntoskrnl)
|
2011-01-27 21:57:54 +00:00
|
|
|
add_importlib_target(wmilib.spec)
|
2010-11-05 13:46:48 +00:00
|
|
|
|
2010-12-03 11:01:21 +00:00
|
|
|
add_cab_target(wmilib 2)
|