reactos/modules/rostests/apitests/compiler/CMakeLists.txt
2022-05-27 01:37:34 +03:00

22 lines
576 B
CMake

if (MSVC OR ARCH STREQUAL "i386")
#FIXME _setjmp definitions in CRT headers is wrong
add_subdirectory(ms)
list(APPEND SOURCE ms_seh.c)
endif()
list(APPEND SOURCE
pseh.c
pseh_cpp.cpp
psehtest2.c
testlist.c)
add_executable(compiler_apitest ${SOURCE})
if (MSVC OR ARCH STREQUAL "i386")
target_link_libraries(compiler_apitest ms_seh_test)
endif()
target_link_libraries(compiler_apitest wine ${PSEH_LIB})
set_module_type(compiler_apitest win32cui)
add_importlibs(compiler_apitest msvcrt kernel32 ntdll)
add_rostests_file(TARGET compiler_apitest)