set(GuiLibraryName "emgui")

set(GuiLibrarySource
	allfilterproxymodel.cpp
	basetreemodel.cpp
	eldbabstractmodel.cpp
	eldbdinamictablemodel.cpp
	eldbmodelcreator.cpp
	eldbobjectformcollection.cpp
	eldbobjectform.cpp
	eldbstatictablemodel.cpp
	eldbtreemodel.cpp
	elwindowdispatcher.cpp
	elwindowkeys.cpp
	xmlentitiesmodel.cpp
)

set(GuiLibraryMoc
	basetreemodel.h
	eldbabstractmodel.h
	eldbdinamictablemodel.h
	eldbmodelcreator.h
	eldbobjectformcollection.h
	eldbobjectform.h
	eldbstatictablemodel.h
	eldbtreemodel.h
	elwindowdispatcher.h
)

set(GuiLibraryResource
	emguiimages.qrc
)

qt4_wrap_cpp(generatedMoc ${GuiLibraryMoc})
qt4_add_resources(generatedResource ${GuiLibraryResource})

### исполняемый файл
add_definitions(-DEMGUI_LIBRARY)

add_library(${GuiLibraryName} SHARED
    ${GuiLibrarySource}
	${generatedMoc}
	${generatedResource}
)

target_link_libraries(${GuiLibraryName}
	${QT_QTCORE_LIBRARY}
	${QT_QTGUI_LIBRARY}
	${QT_QTUITOOLS_LIBRARY}
	emcore
)

### цели установки
install(TARGETS ${GuiLibraryName} DESTINATION lib)

