reactos/modules/rostests/apitests/crt/static_crt_apitest.cmake
2024-04-25 05:25:12 +02:00

52 lines
1.1 KiB
CMake

list(APPEND SOURCE_STATIC
_snprintf.c
_snwprintf.c
_vscprintf.c
_vscwprintf.c
_vsnprintf.c
_vsnwprintf.c
atexit.c
ceil.c
fabs.c
floor.c
fpcontrol.c
mbstowcs.c
mbtowc.c
rand_s.c
sprintf.c
strcpy.c
strlen.c
strtoul.c
wcstombs.c
wcstoul.c
wctomb.c
)
if(ARCH STREQUAL "i386")
list(APPEND SOURCE_STATIC
# To be filled
)
elseif(ARCH STREQUAL "amd64")
list(APPEND SOURCE_STATIC
# To be filled
)
elseif(ARCH STREQUAL "arm")
list(APPEND SOURCE_STATIC
__rt_div.c
__fto64.c
__64tof.c
)
endif()
add_executable(static_crt_apitest EXCLUDE_FROM_ALL testlist.c ${SOURCE_STATIC})
target_compile_definitions(static_crt_apitest PRIVATE TEST_STATIC_CRT _CRTBLD wine_dbgstr_an=wine_dbgstr_an_ wine_dbgstr_wn=wine_dbgstr_wn_)
target_link_libraries(static_crt_apitest crt wine ${PSEH_LIB})
set_module_type(static_crt_apitest win32cui)
add_importlibs(static_crt_apitest kernel32 ntdll)
add_rostests_file(TARGET static_crt_apitest)
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(static_crt_apitest PRIVATE -Wno-format)
endif()