Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (16 sloc) 0.52 kb
5d82be1 @rtv first commit
authored
1
2
3 cmake_minimum_required(VERSION 2.6)
4
5 include(FindPkgConfig)
6 pkg_search_module( STG REQUIRED stage )
7
7955300 @rtv importing code removed from Stage
authored
8 ADD_LIBRARY( dw MODULE dw.cc )
5d82be1 @rtv first commit
authored
9
10 # expand annoying colon-separated lists into usable strings
11
12 foreach(f ${STG_CFLAGS})
13 set (STG_CFLAGS_STR "${STG_CFLAGS_STR} ${f}")
14 endforeach(f)
15
16 foreach(f ${STG_LDFLAGS})
17 set (STG_LDFLAGS_STR "${STG_LDFLAGS_STR} ${f}")
18 endforeach(f)
19
7955300 @rtv importing code removed from Stage
authored
20 set_target_properties( dw PROPERTIES
5d82be1 @rtv first commit
authored
21 COMPILE_FLAGS "${STG_CFLAGS_STR}"
22 LINK_FLAGS "${STG_LDFLAGS_STR} -framework opengl"
7955300 @rtv importing code removed from Stage
authored
23 PREFIX ""
5d82be1 @rtv first commit
authored
24 )
25
Something went wrong with that request. Please try again.