mirror of
https://github.com/reactos/reactos.git
synced 2024-07-10 14:45:06 +00:00
00ed72d7e8
Use add_compile_options and the like instead
40 lines
1.1 KiB
CMake
40 lines
1.1 KiB
CMake
|
|
spec2def(dllexport_test_dll1.dll dllexport_test_dll1.spec ADD_IMPORTLIB)
|
|
spec2def(dllexport_test_dll2.dll dllexport_test_dll2.spec ADD_IMPORTLIB)
|
|
|
|
set(baseaddress_dllexport_test_dll1 0x1000000)
|
|
|
|
add_library(dllexport_test_dll1 MODULE
|
|
dllexport_test_dll1.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll1.def)
|
|
|
|
set_module_type(dllexport_test_dll1 module)
|
|
add_importlibs(dllexport_test_dll1 dllexport_test_dll2)
|
|
|
|
set(baseaddress_dllexport_test_dll2 0x2000000)
|
|
|
|
add_library(dllexport_test_dll2 MODULE
|
|
dllexport_test_dll2.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/dllexport_test_dll2.def)
|
|
|
|
set_module_type(dllexport_test_dll2 module)
|
|
|
|
add_executable(dllexport_test dllexport_test.c)
|
|
set_module_type(dllexport_test win32cui)
|
|
add_importlibs(dllexport_test dllexport_test_dll1 msvcrt kernel32 ntdll)
|
|
|
|
# framedyn is skipped in the clang-cl build
|
|
if(NOT USE_CLANG_CL)
|
|
|
|
add_library(dllimport_test MODULE dllimport_framedyn.cpp)
|
|
set_module_type(dllimport_test module)
|
|
add_importlibs(dllimport_test framedyn)
|
|
|
|
if (MSVC)
|
|
target_compile_options(dllimport_test PRIVATE /Zc:wchar_t-)
|
|
else()
|
|
target_link_libraries(dllimport_test framedynex)
|
|
endif()
|
|
|
|
endif()
|