1
2if (MSVC OR ARCH STREQUAL "i386")
3    #FIXME _setjmp definitions in CRT headers is wrong
4    add_subdirectory(ms)
5    list(APPEND SOURCE ms_seh.c)
6endif()
7
8list(APPEND SOURCE
9    floatconv.c
10    pseh.c
11    pseh_cpp.cpp
12    psehtest2.c
13    testlist.c)
14
15add_executable(compiler_apitest ${SOURCE})
16if (MSVC OR ARCH STREQUAL "i386")
17    target_link_libraries(compiler_apitest ms_seh_test)
18endif()
19target_link_libraries(compiler_apitest wine ${PSEH_LIB})
20set_module_type(compiler_apitest win32cui)
21add_importlibs(compiler_apitest msvcrt kernel32 ntdll)
22add_rostests_file(TARGET compiler_apitest)
23