Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 52 lines (38 sloc) 1.232 kB
02e028f experimenting with CMake support, as autotools are so heinous to work…
rtv authored
1 PROJECT(Stage)
2ba0e44 added laser noise generating plugin as a demo
rtv authored
2
3d4fd9e improved the CMake build scripts to the point where the autotools stu…
rtv authored
3 SET( V_MAJOR 3 )
4 SET( V_MINOR 0 )
5 SET( V_BUGFIX 0 )
6
7 SET( VERSION ${V_MAJOR}.${V_MINOR}.${V_BUGFIX} )
8
9 MESSAGE (STATUS "${PROJECT_NAME} version ${VERSION}")
10
11 # define some preprocessor strings that the code is expecting
12 ADD_DEFINITIONS( -DPROJECT='"'${PROJECT_NAME}'"'
13 -DVERSION='"'${VERSION}'"' )
4f9d098 cmake build works with modules & partially installs
rtv authored
14
2ba0e44 added laser noise generating plugin as a demo
rtv authored
15 include(FindPkgConfig)
36bf60e removed gdk-pixbuf dependency (and thus GTK is gone)
rtv authored
16 pkg_check_modules( GLIB glib-2.0 )
3d4fd9e improved the CMake build scripts to the point where the autotools stu…
rtv authored
17 pkg_check_modules( PLAYER playercore )
2ba0e44 added laser noise generating plugin as a demo
rtv authored
18 find_package(OPENGL REQUIRED)
19
3d4fd9e improved the CMake build scripts to the point where the autotools stu…
rtv authored
20 # include(FindFLTK) doesn't seem to work for me, so we work a bit harder
21 set(FLTK_INCLUDE_DIR CMAKE_INCLUDE_PATH )
2ba0e44 added laser noise generating plugin as a demo
rtv authored
22 find_package(FLTK REQUIRED)
23
3d4fd9e improved the CMake build scripts to the point where the autotools stu…
rtv authored
24 # all targets need these include directories
25 include_directories( .
26 libstage
2ba0e44 added laser noise generating plugin as a demo
rtv authored
27 replace
28 ${GLIB_INCLUDE_DIRS}
29 ${FLTK_INCLUDE_DIR}
3d4fd9e improved the CMake build scripts to the point where the autotools stu…
rtv authored
30 ${OPENGL_INCLUDE_DIR}
31 )
32
33
34 # all targets need these library directories
35 link_directories(${GLIB_LIBRARY_DIRS}
36 ${FLTK_LIBRARY_DIRS}
37 ${OPENGL_LIBRARY_DIRS}
2ba0e44 added laser noise generating plugin as a demo
rtv authored
38 )
39
3d4fd9e improved the CMake build scripts to the point where the autotools stu…
rtv authored
40 # generate a configuration header file in this dir
41 # CONFIGURE_FILE( config.h.cmake config.h )
42
43 # work through these subdirs
02e028f experimenting with CMake support, as autotools are so heinous to work…
rtv authored
44 ADD_SUBDIRECTORY(libstage)
2ba0e44 added laser noise generating plugin as a demo
rtv authored
45 ADD_SUBDIRECTORY(examples)
3d4fd9e improved the CMake build scripts to the point where the autotools stu…
rtv authored
46
47 IF( PLAYER_FOUND )
48 MESSAGE( "Found Player in ${PLAYER_INCLUDE_DIRS}")
49 ADD_SUBDIRECTORY(libstageplugin)
50 ENDIF( PLAYER_FOUND )
51
Something went wrong with that request. Please try again.