reactos/dll/win32/avicap32/CMakeLists.txt
Sylvain Petreolle 174808a463 Move all temporary import libs to a single directory.
This allows linking to libraries with "-lfoo".

svn path=/branches/cmake-bringup/; revision=48796
2010-09-17 20:27:01 +00:00

23 lines
752 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(-DUNICODE -D_UNICODE)
spec2def(avicap32 ${CMAKE_CURRENT_SOURCE_DIR}/avicap32.spec ${CMAKE_CURRENT_BINARY_DIR}/avicap32.def)
add_library(avicap32 SHARED
${CMAKE_CURRENT_SOURCE_DIR}/avicap32.c
${CMAKE_CURRENT_SOURCE_DIR}/avicap32.rc)
set_target_properties(avicap32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
target_link_libraries(avicap32
${CMAKE_CURRENT_BINARY_DIR}/avicap32.def
-ladvapi32
-luser32
wine
mingw_common
-lversion)
add_dependencies(avicap32 avicap32_def psdk)