a204ad395fa52a75413109a3f6aa041a83649d7c
[reactos.git] / modules / 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
7 add_library(dllexport_test_dll1 SHARED
8 dllexport_test_dll1.c
9 ${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll1.def)
10
11 set_module_type(dllexport_test_dll1 module)
12 add_importlibs(dllexport_test_dll1 dllexport_test_dll2)
13
14 set(baseaddress_dllexport_test_dll2 0x2000000)
15
16 add_library(dllexport_test_dll2 SHARED
17 dllexport_test_dll2.c
18 ${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll2.def)
19
20 set_module_type(dllexport_test_dll2 module)
21
22 add_executable(dllexport_test dllexport_test.c)
23 set_module_type(dllexport_test win32cui)
24 add_importlibs(dllexport_test dllexport_test_dll1 msvcrt kernel32 ntdll)
25
26 if(MSVC)
27 add_compile_flags("/Zc:wchar_t-")
28 endif()
29
30 add_library(dllimport_test SHARED dllimport_framedyn.cpp)
31 set_module_type(dllimport_test module)
32 add_importlibs(dllimport_test framedyn)
33
34 if(NOT MSVC)
35 target_link_libraries(dllimport_test framedynex)
36 endif()