set(CMAKE_C_CREATE_SHARED_LIBRARY " -o -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw") add_definitions(-D__WINESRC__) include_directories(${REACTOS_BINARY_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)