Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (17 sloc) 0.623 kb
cmake_minimum_required(VERSION 2.6)
include(FindPkgConfig)
pkg_search_module( STG REQUIRED stage )
ADD_LIBRARY( wheel MODULE wheel.cc )
# expand annoying colon-separated lists into usable strings
foreach(f ${STG_CFLAGS})
set (STG_CFLAGS_STR "${STG_CFLAGS_STR} ${f}")
endforeach(f)
foreach(f ${STG_LDFLAGS})
set (STG_LDFLAGS_STR "${STG_LDFLAGS_STR} ${f}")
endforeach(f)
set_target_properties( wheel PROPERTIES
COMPILE_FLAGS "${STG_CFLAGS_STR}"
LINK_FLAGS "${STG_LDFLAGS_STR} -framework opengl"
)
# delete the "lib" prefix from the plugin libraries
SET_TARGET_PROPERTIES( wheel PROPERTIES PREFIX "" )
Jump to Line
Something went wrong with that request. Please try again.