2017-01-13 15:33:38 +00:00
|
|
|
|
|
|
|
spec2def(redirtest.dll redirtest.spec ADD_IMPORTLIB)
|
|
|
|
|
2017-01-17 19:11:05 +00:00
|
|
|
list(APPEND SOURCE1
|
|
|
|
redirtest1.c
|
2017-01-13 15:33:38 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/redirtest_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/redirtest.def)
|
|
|
|
|
2017-01-17 19:11:05 +00:00
|
|
|
list(APPEND SOURCE2
|
|
|
|
redirtest2.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/redirtest_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/redirtest.def)
|
2017-01-13 15:33:38 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(redirtest1 MODULE ${SOURCE1})
|
2017-01-13 15:33:38 +00:00
|
|
|
set_module_type(redirtest1 win32dll)
|
|
|
|
add_importlibs(redirtest1 msvcrt kernel32 ntdll)
|
2017-01-17 19:11:05 +00:00
|
|
|
add_rostests_file(TARGET redirtest1 RENAME kernel32test_versioned.dll)
|
2017-01-13 15:33:38 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(redirtest2 MODULE ${SOURCE2})
|
2017-01-13 15:33:38 +00:00
|
|
|
set_module_type(redirtest2 win32dll)
|
|
|
|
add_importlibs(redirtest2 msvcrt kernel32 ntdll)
|
2017-01-17 19:11:05 +00:00
|
|
|
add_rostests_file(TARGET redirtest2 SUBDIR testdata RENAME kernel32test_versioned.dll)
|
2017-01-13 15:33:38 +00:00
|
|
|
add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/redirtest2.manifest" SUBDIR testdata)
|
2017-01-17 19:41:26 +00:00
|
|
|
add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/redir2dep.manifest" SUBDIR testdata)
|