project(sigmodrwidgets) set(sigmodrwidgets_RESOURCES gui/widgetsui.qrc ) qt4_add_resources(sigmodrwidgets_RESOURCE_SRCS ${sigmodrwidgets_RESOURCES}) set(sigmodrwidgets_HEADERS AbilityUI.h AuthorUI.h BadgeUI.h CoinListUI.h CoinListItemUI.h EffectItem.h EggGroupUI.h GameUI.h Global.h GlobalScriptUI.h ItemUI.h ItemTypeUI.h MapUI.h MapEditor.h MapItem.h MapScene.h MapEffectUI.h MapTrainerUI.h MapTrainerTeamMemberUI.h MapWarpUI.h MapWildListUI.h MapWildListEncounterUI.h MoveUI.h NatureUI.h ObjectUI.h ObjectUIPrivate.h RulesUI.h SkinUI.h SoundUI.h SpeciesUI.h SpeciesMoveUI.h SpriteUI.h StatusUI.h StoreUI.h TileUI.h TileItem.h TimeUI.h TrainerUI.h TrainerItem.h TypechartModel.h TypeUI.h ValidationDialog.h WarpItem.h WeatherUI.h ) set(sigmodrwidgets_SRCS AbilityUI.cpp AuthorUI.cpp BadgeUI.cpp CoinListUI.cpp CoinListItemUI.cpp EffectItem.cpp EggGroupUI.cpp GameUI.cpp GlobalScriptUI.cpp ItemUI.cpp ItemTypeUI.cpp MapUI.cpp MapEditor.cpp MapItem.cpp MapScene.cpp MapEffectUI.cpp MapTrainerUI.cpp MapTrainerTeamMemberUI.cpp MapWarpUI.cpp MapWildListUI.cpp MapWildListEncounterUI.cpp MoveUI.cpp NatureUI.cpp ObjectUI.cpp ObjectUIPrivate.cpp RulesUI.cpp SkinUI.cpp SoundUI.cpp SpeciesUI.cpp SpeciesMoveUI.cpp SpriteUI.cpp StatusUI.cpp StoreUI.cpp TileUI.cpp TileItem.cpp TimeUI.cpp TrainerUI.cpp TrainerItem.cpp TypechartModel.cpp TypeUI.cpp ValidationDialog.cpp WarpItem.cpp WeatherUI.cpp ) kde4_add_library(sigmodrwidgets SHARED ${sigmodrwidgets_RESOURCE_SRCS} ${sigmodrwidgets_SRCS} ) set_target_properties(sigmodrwidgets PROPERTIES VERSION ${SIGEN_VERSION} SOVERSION ${SIGEN_SOVERSION} ) target_link_libraries(sigmodrwidgets ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTUITOOLS_LIBRARY} ${KDE4_KDECORE_LIBRARY} ${KDE4_KDEUI_LIBRARY} ${KDE4_KFILE_LIBRARY} ${KDE4_KIO_LIBRARY} ${PHONON_LIBRARY} sigcore sigmod sigmodrcorewidgets ) target_link_libraries(sigmodrwidgets LINK_INTERFACE_LIBRARIES ${QT_QTGUI_LIBRARY} sigmod ) install( TARGETS sigmodrwidgets EXPORT sigen_EXPORTS DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} COMPONENT runtime ) install( FILES ${sigmodrwidgets_HEADERS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/${CMAKE_PROJECT_NAME}/sigmodr/widgets COMPONENT development )