reactos/dll/win32/advpack/CMakeLists.txt
Amine Khaldi 7fdcb2e5d9 [CMAKE]
- Add avicap32, batt and beepmidi to build.
- Fix a typo.

svn path=/branches/cmake-bringup/; revision=48588
2010-08-22 00:52:26 +00:00

25 lines
813 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__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
file(GLOB_RECURSE SOURCE *.c)
spec2def(advpack ${CMAKE_CURRENT_SOURCE_DIR}/advpack.spec ${CMAKE_CURRENT_BINARY_DIR}/advpack.def)
add_library(advpack SHARED ${SOURCE})
set_target_properties(advpack PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
target_link_libraries(advpack
${CMAKE_CURRENT_BINARY_DIR}/advpack.def
wine
mingw_common
-lole32
-lsetupapi
-lversion
${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a)
add_dependencies(advpack advpack_def psdk)