plugins_cmake.txt 499 Bytes
Newer Older
1 2 3 4 5

QT4_WRAP_UI( PLUGIN_UIC_FILES ${PLUGIN_UI_FILES} )

QT4_WRAP_CPP( PLUGIN_MOC_FILES ${PLUGIN_QOBJECT_FILES} )

6 7 8
#IF(APPLE)
#	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L/usr/local/lib")
#ENDIF(APPLE)
Thery Sylvain's avatar
Thery Sylvain committed
9

Sylvain Thery's avatar
Sylvain Thery committed
10 11 12
if(APPLE)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")	
endif()
Sylvain Thery's avatar
Sylvain Thery committed
13 14 15 16 17 18 19 20 21 22

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

TARGET_LINK_LIBRARIES( ${PLUGIN_NAME}
	${CGoGN_LIBS}
	${EXT_LIBS}
23
	pthread
Sylvain Thery's avatar
Sylvain Thery committed
24 25 26 27 28 29
)

ADD_DEPENDENCIES( ${PLUGIN_NAME} SCHNApps )