[DLLEXPORT_TEST]
[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)
23
24 if(MSVC)
25 add_compile_flags("/Zc:wchar_t-")
26 endif()
27
28 add_library(dllimport_test SHARED
29 dllimport_framedyn.cpp)
30 set_module_type(dllimport_test win32dll ENTRYPOINT 0)
31 add_importlibs(dllimport_test msvcrt framedyn)
32 target_link_libraries(dllimport_test framedynex)