mirror of
https://github.com/reactos/reactos.git
synced 2024-09-19 01:00:51 +00:00
86d2e8f543
Add a test that checks the ability to link to function and data exports with cdecl, stdcall and c++ mangled names, including forwarders. It just prints "done". Feel free to convert it into a proper rostests, if you think it's required. svn path=/trunk/; revision=62269
22 lines
736 B
CMake
22 lines
736 B
CMake
|
|
spec2def(dllexport_test_dll1.dll dllexport_test_dll1.spec ADD_IMPORTLIB)
|
|
spec2def(dllexport_test_dll2.dll dllexport_test_dll2.spec ADD_IMPORTLIB)
|
|
|
|
add_library(dllexport_test_dll1 SHARED
|
|
dllexport_test_dll1.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll1.def)
|
|
set_module_type(dllexport_test_dll1 win32dll ENTRYPOINT 0)
|
|
add_importlibs(dllexport_test_dll1 dllexport_test_dll2)
|
|
|
|
add_library(dllexport_test_dll2 SHARED
|
|
dllexport_test_dll2.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll2.def)
|
|
set_module_type(dllexport_test_dll2 win32dll ENTRYPOINT 0)
|
|
|
|
|
|
add_executable(dllexport_test
|
|
dllexport_test.c)
|
|
|
|
set_module_type(dllexport_test win32cui)
|
|
add_importlibs(dllexport_test dllexport_test_dll1 msvcrt kernel32 ntdll)
|