Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0f72ec239f
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (18 sloc) 0.646 kB
cmake_minimum_required( VERSION 2.6 )
include(FindPkgConfig)
pkg_search_module( STAGE REQUIRED stage )
include_directories( ${STAGE_INCLUDE_DIRS} )
link_directories( ${STAGE_LIBRARY_DIRS} )
SET( PLUGINS
puck2
GroupEmptyWorld
)
# create a library module for each plugin and link libstage to each
foreach( PLUGIN ${PLUGINS} )
ADD_LIBRARY( ${PLUGIN} MODULE ${PLUGIN}.cc )
TARGET_LINK_LIBRARIES( ${PLUGIN} ${STAGE_LIBRARIES} )
endforeach( PLUGIN )
# delete the "lib" prefix from the plugin libraries
SET_TARGET_PROPERTIES( ${PLUGINS} PROPERTIES PREFIX "" )
# install in <prefix>/lib
install( TARGETS ${PLUGINS} DESTINATION lib)
Jump to Line
Something went wrong with that request. Please try again.