[DLLIMPORT_TEST] Skip this module in the clang-cl build until framedyn is back in...
[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 # framedyn is skipped in the clang-cl build
31 if(NOT USE_CLANG_CL)
32
33 add_library(dllimport_test SHARED dllimport_framedyn.cpp)
34 set_module_type(dllimport_test module)
35 add_importlibs(dllimport_test framedyn)
36
37 if(NOT MSVC)
38 target_link_libraries(dllimport_test framedynex)
39 endif()
40
41 endif()