14a23c997b29bdd59113f0b10ece5a56d74d18dd
[reactos.git] / rostests / tests / dllexport / CMakeLists.txt
1
2 spec2def(dllexport_test_dll1.dll dllexport_test_dll1.spec ADD_IMPORTLIB)
3 spec2def(dllexport_test_dll2.dll dllexport_test_dll2.spec ADD_IMPORTLIB)
4
5 set(baseaddress_dllexport_test_dll1 0x1000000)
6 add_library(dllexport_test_dll1 SHARED
7 dllexport_test_dll1.c
8 ${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll1.def)
9 set_module_type(dllexport_test_dll1 win32dll ENTRYPOINT 0)
10 add_importlibs(dllexport_test_dll1 dllexport_test_dll2)
11
12 set(baseaddress_dllexport_test_dll2 0x2000000)
13 add_library(dllexport_test_dll2 SHARED
14 dllexport_test_dll2.c
15 ${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll2.def)
16 set_module_type(dllexport_test_dll2 win32dll ENTRYPOINT 0)
17
18 add_executable(dllexport_test
19 dllexport_test.c)
20
21 set_module_type(dllexport_test win32cui)
22 add_importlibs(dllexport_test dllexport_test_dll1 msvcrt kernel32 ntdll)