mirror of
https://github.com/reactos/reactos.git
synced 2024-09-23 02:56:00 +00:00
887046a6ee
- build msvc importlibs explicitly from def file - circumvent lack of pseh lib in MSVC. - fix advapi32.def svn path=/branches/cmake-bringup/; revision=49409
24 lines
442 B
CMake
24 lines
442 B
CMake
|
|
spec2def(psapi.dll psapi.spec)
|
|
|
|
list(APPEND SOURCE
|
|
malloc.c
|
|
psapi.c
|
|
psapi.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/psapi.def)
|
|
|
|
add_library(psapi SHARED
|
|
${CMAKE_CURRENT_BINARY_DIR}/psapi_precomp.h.gch
|
|
${SOURCE})
|
|
|
|
set_module_type(psapi win32dll)
|
|
|
|
target_link_libraries(psapi
|
|
epsapi
|
|
${PSEH_LIB})
|
|
|
|
add_importlibs(psapi kernel32 ntdll)
|
|
add_pch(psapi ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
|
|
|
add_cab_target(psapi 1)
|