[CMAKE] Elimitate the use of GCC and CLANG variables
[reactos.git] / modules / rostests / apitests / compiler / CMakeLists.txt
1
2 if (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)
6 endif()
7
8 list(APPEND SOURCE
9 pseh.c
10 pseh_cpp.cpp
11 psehtest2.c
12 testlist.c)
13
14 add_executable(compiler_apitest ${SOURCE})
15 if (MSVC OR ARCH STREQUAL "i386")
16 target_link_libraries(compiler_apitest ms_seh_test)
17 endif()
18 target_link_libraries(compiler_apitest wine ${PSEH_LIB})
19 set_module_type(compiler_apitest win32cui)
20 add_importlibs(compiler_apitest msvcrt kernel32 ntdll)
21 add_rostests_file(TARGET compiler_apitest)