1 2remove_definitions(-D_WIN32_WINNT=0x502) 3add_definitions(-D_WIN32_WINNT=0x600) 4 5add_definitions(-D__WINESRC__) 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(odbccp32.dll odbccp32.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 odbccp32.c 11 ${CMAKE_CURRENT_BINARY_DIR}/odbccp32_stubs.c 12 ${CMAKE_CURRENT_BINARY_DIR}/odbccp32.def) 13 14add_library(odbccp32 MODULE ${SOURCE}) 15set_module_type(odbccp32 win32dll) 16target_link_libraries(odbccp32 uuid wine) 17add_importlibs(odbccp32 advapi32 msvcrt kernel32 ntdll) 18add_cd_file(TARGET odbccp32 DESTINATION reactos/system32 FOR all) 19