1 2spec2def(dllexport_test_dll1.dll dllexport_test_dll1.spec ADD_IMPORTLIB) 3spec2def(dllexport_test_dll2.dll dllexport_test_dll2.spec ADD_IMPORTLIB) 4 5set(baseaddress_dllexport_test_dll1 0x1000000) 6 7add_library(dllexport_test_dll1 MODULE 8 dllexport_test_dll1.c 9 ${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll1.def) 10 11set_module_type(dllexport_test_dll1 module) 12add_importlibs(dllexport_test_dll1 dllexport_test_dll2) 13 14set(baseaddress_dllexport_test_dll2 0x2000000) 15 16add_library(dllexport_test_dll2 MODULE 17 dllexport_test_dll2.c 18 ${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll2.def) 19 20set_module_type(dllexport_test_dll2 module) 21 22add_executable(dllexport_test dllexport_test.c) 23set_module_type(dllexport_test win32cui) 24add_importlibs(dllexport_test dllexport_test_dll1 msvcrt kernel32 ntdll) 25 26add_library(dllimport_test MODULE dllimport_framedyn.cpp) 27set_module_type(dllimport_test module) 28add_importlibs(dllimport_test framedyn) 29add_dependencies(dllimport_test psdk) 30