Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2131 for code/trunk/cmake


Ignore:
Timestamp:
Nov 4, 2008, 2:11:24 PM (15 years ago)
Author:
rgrieder
Message:

Added CMakeLists.txt to every subfolder and adjusted accordingly.
The CMake script I have written can be used as follows:
ADD_SOURCE_DIRECTORY(_source_list directory) # Adds a new source subdirectory where _source_list is the name of the source list in CURRENT folder
ADD_SOURCE_FILES(_source_list) # Adds the source files in a subdirectory to the source list in the super directory (has to be called!)

Note: When adding more subdirectories in a subdirectory, call ADD_SOURCE_FILES after ADD_SOURCE_DIRECTORY!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/AddSourceFiles.cmake

    r2130 r2131  
     1#    AddSourceFiles.cmake - CMake Module to include source files in subdirectories.
     2#    Author: Reto '1337' Grieder (2008)
     3#
     4#    This program is free software; you can redistribute it and/or modify
     5#    it under the terms of the GNU General Public License as published by
     6#    the Free Software Foundation; either version 2 of the License, or
     7#    (at your option) any later version.
     8#
     9#    This program is distributed in the hope that it will be useful,
     10#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     11#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12#    GNU General Public License for more details.
     13#
     14#    You should have received a copy of the GNU General Public License
     15#    along with this program; if not, write to the Free Software
     16#    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
     17
    118MACRO(ADD_SOURCE_DIRECTORY _target_list _directory)
    219
Note: See TracChangeset for help on using the changeset viewer.