1
2spec2def(redirtest.dll redirtest.spec ADD_IMPORTLIB)
3
4list(APPEND SOURCE1
5    redirtest1.c
6    ${CMAKE_CURRENT_BINARY_DIR}/redirtest_stubs.c
7    ${CMAKE_CURRENT_BINARY_DIR}/redirtest.def)
8
9list(APPEND SOURCE2
10    redirtest2.c
11    ${CMAKE_CURRENT_BINARY_DIR}/redirtest_stubs.c
12    ${CMAKE_CURRENT_BINARY_DIR}/redirtest.def)
13
14add_library(redirtest1 MODULE ${SOURCE1})
15set_module_type(redirtest1 win32dll)
16add_importlibs(redirtest1 msvcrt kernel32 ntdll)
17add_rostests_file(TARGET redirtest1 RENAME kernel32test_versioned.dll)
18
19add_library(redirtest2 MODULE ${SOURCE2})
20set_module_type(redirtest2 win32dll)
21add_importlibs(redirtest2 msvcrt kernel32 ntdll)
22add_rostests_file(TARGET redirtest2 SUBDIR testdata RENAME kernel32test_versioned.dll)
23add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/redirtest2.manifest" SUBDIR testdata)
24add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/redir2dep.manifest" SUBDIR testdata)
25