1 # -*- mode: cmake; indent-tabs-mode: t; -*-
3 # ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 # The Original Code is Copyright (C) 2006, Blender Foundation
20 # All rights reserved.
22 # The Original Code is: all of this file.
24 # Contributor(s): Jacques Beaurain.
26 # ***** END GPL LICENSE BLOCK *****
28 # message(STATUS "Configuring makesdna")
31 ../../../../intern/guardedalloc
36 # Build makesdna executable
39 ../../../../intern/guardedalloc/intern/mallocn.c
42 if(WIN32 AND NOT UNIX)
44 ../../../../intern/guardedalloc/intern/mmap_win.c
48 # SRC_DNA_INC is defined in the parent dir
50 add_executable(makesdna ${SRC} ${SRC_DNA_INC})
54 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dna.c
55 COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesdna ${CMAKE_CURRENT_BINARY_DIR}/dna.c ${CMAKE_SOURCE_DIR}/source/blender/makesdna/
59 # Build bf_dna library
74 blender_add_lib(bf_dna "${SRC}" "${INC}" "${INC_SYS}")