reactos/dll/win32/imm32/CMakeLists.txt
Amine Khaldi f84ae9c1f8 [CMAKE]
- Add fmifs, fusion, getuname, hid, httpapi, iccvid, icmp, imaadp32.acm, imagehlp, imm32, initpki, iphlpapi, itircl, loadperf, lpk, lz32, mapi32, mciavi32, mcicda and mciqtz32 to build.

svn path=/branches/cmake-bringup/; revision=48608
2010-08-23 14:40:47 +00:00

24 lines
865 B
CMake

set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(imm32 ${CMAKE_CURRENT_SOURCE_DIR}/imm32.spec ${CMAKE_CURRENT_BINARY_DIR}/imm32.def)
add_library(imm32 SHARED imm.c version.rc)
set_target_properties(imm32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
target_link_libraries(imm32
${CMAKE_CURRENT_BINARY_DIR}/imm32.def
wine
${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a
${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a
mingw_common)
add_dependencies(imm32 imm32_def psdk)