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 EggGroupUI.h GameUI.h Global.h GlobalScriptUI.h ItemUI.h ItemTypeUI.h MapUI.h MapEffectUI.h MapTrainerUI.h MapTrainerTeamMemberUI.h MapWarpUI.h MapWildListUI.h MapWildListEncounterUI.h MoveUI.h NatureUI.h ObjectUI.h RulesUI.h SkinUI.h SoundUI.h SpeciesUI.h SpeciesMoveUI.h SpriteUI.h StatusUI.h StoreUI.h TileUI.h TimeUI.h TrainerUI.h TypeUI.h WeatherUI.h ) set(sigmodrwidgets_SRCS AbilityUI.cpp AuthorUI.cpp BadgeUI.cpp CoinListUI.cpp CoinListItemUI.cpp EggGroupUI.cpp GameUI.cpp GlobalScriptUI.cpp ItemUI.cpp ItemTypeUI.cpp MapUI.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 TimeUI.cpp TrainerUI.cpp TypechartModel.cpp TypeUI.cpp ValidationDialog.cpp WeatherUI.cpp mapeditor/EffectItem.cpp mapeditor/MapEditor.cpp mapeditor/MapGrid.cpp mapeditor/MapItem.cpp mapeditor/MapScene.cpp mapeditor/ShapeItem.cpp mapeditor/TileItem.cpp mapeditor/TrainerItem.cpp mapeditor/WarpItem.cpp mapeditor/WorldMapEditor.cpp mapeditor/WorldMapItem.cpp mapeditor/WorldMapPlacement.cpp mapeditor/WorldMapScene.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 ${LIB_INSTALL_DIR} COMPONENT runtime ) install( FILES ${sigmodrwidgets_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/sigmodr/${PROJECT_NAME} COMPONENT development )