Removing gui and sdl stuff from the build, to be removed altogether later on.
[fail.git] / src / gamebindings / CMakeLists.txt
blobbd9a651f073ecc9c1f4c7b21aa19a1594f17e43f
2 #   Fail game engine
3 #   Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
4
5 #   This file is part of Fail.
7 #   Fail is free software; you can redistribute it and/or modify
8 #   it under the terms of the GNU General Public License version 3
9 #   as published by the Free Software Foundation.
11 #   Fail is distributed in the hope that it will be useful,
12 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #   GNU General Public License for more details.
16 #   You should have received a copy of the GNU General Public License
17 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 failAddModuleDirectories( core )
20 failAddModuleDirectories( io )
21 failAddModuleDirectories( services/fbffile )
22 failAddModuleDirectories( services/objdb )
23 failAddModuleDirectories( math )
24 failAddModuleDirectories( scenegraph )
25 failAddModuleDirectories( scenegraph/shapes )
26 #failAddModuleDirectories( gui )
27 #failAddModuleDirectories( gui/game )
28 #failAddModuleDirectories( sdl )
29 failAddModuleDirectories( collision )
30 #failAddModuleDirectories( manipulators )
32 find_package( FreeType2 REQUIRED )
33 include_directories( ${FREETYPE2_INCLUDE_DIR} ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/src/sdl )
35 failBuildLibrary( gamebindings
36         fbffile.cpp
37         objdb.cpp
38         collision.cpp
39         io.cpp
40         math.cpp
41 #       sdl.cpp
42 #       gui.cpp
43 #       gui-game.cpp
44 #       manipulators.cpp
45         scenegraph.cpp
46         scenegraph-shapes.cpp
47         setup.cpp
50 target_link_libraries( fail-gamebindings
51         fail-core
52         fail-lua
53         fail-services-lua
54         fail-io
55         fail-services-fbffile
56         fail-services-objdb
57         fail-math
58         fail-scenegraph
59         fail-scenegraph-shapes
60 #       fail-gui
61 #       fail-gui-game
62 #       fail-sdl
63         fail-collision
64 #       fail-manipulators
65         ${OPENGL_gl_LIBRARY}
66         ${OPENGL_glu_LIBRARY}
67 #       ${SDL_LIBRARY}
68         ${FTGL_LIBRARY}
69         ${PHYSFS_LIBRARY}
70         ${SQLITE_LIBRARY}
73 add_dependencies( fail-gamebindings
74         fail-services-lua
75         fail-services-fbffile
76         fail-services-objdb
77         fail-io
78         fail-math
79         fail-scenegraph
80         fail-scenegraph-shapes
81 #       fail-gui
82 #       fail-guigame
83 #       fail-sdl
84         fail-collision
85 #       fail-manipulators