make the def handling simpler with cmake, we don't need to specify the library name anyway

This commit is contained in:
Romain Pokrzywka 2010-01-29 17:49:37 -08:00 committed by Ralf Habacker
parent 8ba739fb1a
commit 7487915ff4

View file

@ -270,15 +270,13 @@ if(splitlib AND MSVC)
endif(MSVC_IDE)
else(splitlib AND MSVC)
# all code into one library
if(MSVC)
list(APPEND libdbus_SOURCES ${DBUS_DIR}/dbus-1.def)
endif(MSVC)
add_library(dbus-1 ${DBUS_LIB_TYPE} ${libdbus_SOURCES} ${libdbus_HEADERS} )
target_link_libraries(dbus-1 ${LIBS})
if(MSVC)
set_target_properties(dbus-1 PROPERTIES LINK_FLAGS_RELWITHDEBINFO /def:"${DBUS_DIR}/dbus-1.def.cmake")
set_target_properties(dbus-1 PROPERTIES LINK_FLAGS_RELEASE /def:"${DBUS_DIR}/dbus-1.def.cmake")
set_target_properties(dbus-1 PROPERTIES LINK_FLAGS_MINSIZEREL /def:"${DBUS_DIR}/dbus-1.def.cmake")
set_target_properties(dbus-1 PROPERTIES LINK_FLAGS_DEBUG /def:"${DBUS_DIR}/dbus-1.def.cmake")
endif(MSVC)
if(MSVC_IDE)
project_source_group(${GROUP_CODE} libdbus_SOURCES libdbus_HEADERS)
endif(MSVC_IDE)