1 2spec2def(loadconfig_apitest.exe loadconfig_apitest.spec) 3 4list(APPEND SOURCE 5 common.c 6 stacktrace.c 7 loadconfig.h) 8 9add_executable(loadconfig_apitest ${SOURCE} testlist.c ${CMAKE_CURRENT_BINARY_DIR}/loadconfig_apitest.def) 10target_link_libraries(loadconfig_apitest wine ${PSEH_LIB}) 11set_module_type(loadconfig_apitest win32cui) 12add_importlibs(loadconfig_apitest msvcrt kernel32 ntdll) 13#add_pch(loadconfig_apitest loadconfig.h SOURCE) 14add_rostests_file(TARGET loadconfig_apitest) 15 16# Tell GCC again that we are really interested in exporting symols (who would have figured that we want to use the .def we specified before?) 17set_target_properties(loadconfig_apitest 18 PROPERTIES 19 ENABLE_EXPORTS TRUE 20 DEFINE_SYMBOL "") 21 22fixup_load_config(loadconfig_apitest) 23