mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
1d2b1c4a24
- Get rid of buildno_header target, builno.h is generated at configure time. svn path=/branches/cmake-bringup/; revision=51220
28 lines
679 B
CMake
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)
|