plugins_cmake.txt 424 Bytes
Newer Older
1

Sylvain Thery's avatar
Sylvain Thery committed
2
qt_wrap_ui( PLUGIN_UIC_FILES ${PLUGIN_UI_FILES} )
3

Sylvain Thery's avatar
Sylvain Thery committed
4
qt_wrap_cpp( PLUGIN_MOC_FILES ${PLUGIN_QOBJECT_FILES} )
5

Sylvain Thery's avatar
Sylvain Thery committed
6 7 8
if(APPLE)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")	
endif()
Sylvain Thery's avatar
Sylvain Thery committed
9 10 11 12 13 14 15 16

ADD_LIBRARY( ${PLUGIN_NAME} SHARED
	${PLUGIN_FILES}
	${PLUGIN_UIC_FILES}
	${PLUGIN_MOC_FILES}
)

TARGET_LINK_LIBRARIES( ${PLUGIN_NAME}
Sylvain Thery's avatar
Sylvain Thery committed
17
	SCHNAppsLib
Sylvain Thery's avatar
Sylvain Thery committed
18 19 20 21
	${CGoGN_LIBS}
	${EXT_LIBS}
)

Sylvain Thery's avatar
Sylvain Thery committed
22
qt_use_modules(${PLUGIN_NAME} Core OpenGL Xml Svg Gui)
Sylvain Thery's avatar
Sylvain Thery committed
23 24