Skip to content

HTTPS clone URL

Subversion checkout URL

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