Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/CMakeLists.txt @ 2638

Last change on this file since 2638 was 2633, checked in by rgrieder, 16 years ago

Added documentation target. Surprisingly worked on my box just like that. I had to limit the input files to /src (source and binary tree) though, or Doxygen would have created for all the dependencies as well (boost, ogre, etc.) because of the dependencies folder.

Note: This is all just copy & paste from the CMake forum. I haven't had a look at it.
Somebody will have to merge our own Doxyfile with the new one.

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1 #
2 #             ORXONOX - the hottest 3D action shooter ever to exist
3 #                             > www.orxonox.net <
4 #
5 #        This program is free software; you can redistribute it and/or
6 #         modify it under the terms of the GNU General Public License
7 #        as published by the Free Software Foundation; either version 2
8 #            of the License, or (at your option) any later version.
9 #
10 #       This program is distributed in the hope that it will be useful,
11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #                 GNU General Public License for more details.
14 #
15 #   You should have received a copy of the GNU General Public License along
16 #      with this program; if not, write to the Free Software Foundation,
17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 #
19 
20PROJECT(Orxonox C CXX)
21
22CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
23
24SET(ORXONOX_VERSION_MAJOR 0)
25SET(ORXONOX_VERSION_MINOR 1)
26SET(ORXONOX_VERSION_PATCH 0)
27SET(ORXONOX_VERSION 0.1.0)
28
29# Keep devs from using the root directory as binary directory (messes up the source tree)
30IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
31  MESSAGE(FATAL_ERROR "Do not use the root directory as CMake output directory! mkdir build; cd build; cmake ..")
32ENDIF()
33
34# This sets where to look for modules (e.g. "Find*.cmake" files)
35SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
36
37# Library Config
38INCLUDE(LibraryConfig)
39
40# Build Config
41INCLUDE(BuildConfig)
42
43# Creates the actual project
44ADD_SUBDIRECTORY(src)
45
46# Configure the binary output directory
47ADD_SUBDIRECTORY(bin-config)
48
49# Last but not least: Try to make doxygen target
50INCLUDE(DocumentationTarget)
Note: See TracBrowser for help on using the repository browser.