2010-12-07 11:40:10 +00:00
|
|
|
|
2016-04-20 12:39:37 +00:00
|
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2017-10-21 13:36:29 +00:00
|
|
|
add_definitions(-D__WINESRC__ -DWINETEST_USE_DBGSTR_LONGLONG)
|
2010-12-07 11:40:10 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
atom.c
|
|
|
|
change.c
|
|
|
|
directory.c
|
|
|
|
env.c
|
|
|
|
error.c
|
2021-07-09 08:58:15 +00:00
|
|
|
exception.c
|
2010-12-07 11:40:10 +00:00
|
|
|
file.c
|
|
|
|
info.c
|
|
|
|
large_int.c
|
|
|
|
om.c
|
|
|
|
path.c
|
2011-10-03 19:29:29 +00:00
|
|
|
pipe.c
|
2010-12-07 11:40:10 +00:00
|
|
|
port.c
|
2017-10-21 13:36:29 +00:00
|
|
|
process.c
|
2010-12-07 11:40:10 +00:00
|
|
|
reg.c
|
|
|
|
rtl.c
|
2011-10-03 19:29:29 +00:00
|
|
|
rtlbitmap.c
|
2010-12-07 11:40:10 +00:00
|
|
|
rtlstr.c
|
|
|
|
string.c
|
2021-07-09 08:58:15 +00:00
|
|
|
testlist.c
|
2020-05-09 21:37:40 +00:00
|
|
|
time.c)
|
2010-12-07 11:40:10 +00:00
|
|
|
|
2017-07-24 15:09:22 +00:00
|
|
|
if(ARCH STREQUAL "i386")
|
2019-01-20 14:58:32 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
generated.c)
|
2017-07-24 15:09:22 +00:00
|
|
|
endif()
|
|
|
|
|
2020-05-09 21:37:40 +00:00
|
|
|
add_executable(ntdll_winetest
|
2021-07-09 08:58:15 +00:00
|
|
|
${SOURCE})
|
2014-10-17 23:29:24 +00:00
|
|
|
|
2021-04-22 15:28:52 +00:00
|
|
|
target_link_libraries(ntdll_winetest pseh)
|
|
|
|
|
2018-10-05 16:49:17 +00:00
|
|
|
if(MSVC AND ARCH STREQUAL "amd64")
|
|
|
|
# warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
|
|
|
|
target_compile_options(ntdll_winetest PRIVATE /wd4334)
|
|
|
|
endif()
|
|
|
|
|
2022-05-25 22:37:23 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(ntdll_winetest PRIVATE "-Wno-format")
|
2011-09-04 17:33:34 +00:00
|
|
|
endif()
|
2017-12-03 22:30:10 +00:00
|
|
|
|
|
|
|
set_module_type(ntdll_winetest win32cui)
|
|
|
|
add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
|
|
|
|
add_rostests_file(TARGET ntdll_winetest)
|