2 spec2def(dllexport_test_dll1.dll dllexport_test_dll1.spec ADD_IMPORTLIB)
3 spec2def(dllexport_test_dll2.dll dllexport_test_dll2.spec ADD_IMPORTLIB)
5 set(baseaddress_dllexport_test_dll1 0x1000000)
6 add_library(dllexport_test_dll1 SHARED
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)
12 set(baseaddress_dllexport_test_dll2 0x2000000)
13 add_library(dllexport_test_dll2 SHARED
15 ${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll2.def)
16 set_module_type(dllexport_test_dll2 win32dll ENTRYPOINT 0)
18 add_executable(dllexport_test
21 set_module_type(dllexport_test win32cui)
22 add_importlibs(dllexport_test dllexport_test_dll1 msvcrt kernel32 ntdll)
25 add_compile_flags("/Zc:wchar_t-")
28 add_library(dllimport_test SHARED
29 dllimport_framedyn.cpp)
30 set_module_type(dllimport_test win32dll ENTRYPOINT 0)
31 add_importlibs(dllimport_test framedyn)
33 target_link_libraries(dllimport_test framedynex)