2011-01-03 11:24:54 +00:00
|
|
|
|
2022-05-25 22:37:23 +00:00
|
|
|
if (MSVC OR ARCH STREQUAL "i386")
|
2021-04-09 14:52:53 +00:00
|
|
|
#FIXME _setjmp definitions in CRT headers is wrong
|
|
|
|
add_subdirectory(ms)
|
|
|
|
list(APPEND SOURCE ms_seh.c)
|
|
|
|
endif()
|
2020-10-31 10:08:27 +00:00
|
|
|
|
2020-03-10 00:27:59 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
pseh.c
|
|
|
|
pseh_cpp.cpp
|
|
|
|
psehtest2.c
|
|
|
|
testlist.c)
|
|
|
|
|
|
|
|
add_executable(compiler_apitest ${SOURCE})
|
2022-05-25 22:37:23 +00:00
|
|
|
if (MSVC OR ARCH STREQUAL "i386")
|
2021-04-09 14:52:53 +00:00
|
|
|
target_link_libraries(compiler_apitest ms_seh_test)
|
|
|
|
endif()
|
|
|
|
target_link_libraries(compiler_apitest wine ${PSEH_LIB})
|
2020-03-10 00:27:59 +00:00
|
|
|
set_module_type(compiler_apitest win32cui)
|
|
|
|
add_importlibs(compiler_apitest msvcrt kernel32 ntdll)
|
|
|
|
add_rostests_file(TARGET compiler_apitest)
|