Added support for dashed line in the Parameter Editor mode.
[blender.git] / source / blender / render / CMakeLists.txt
1 # $Id$
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (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 Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
20 #
21 # The Original Code is: all of this file.
22 #
23 # Contributor(s): Jacques Beaurain.
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 # remove warning until render branch merged.
28 STRING(REGEX REPLACE "-Wunused-parameter" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
29
30 FILE(GLOB SRC intern/source/*.c intern/raytrace/*.cpp)
31
32 SET(INC 
33         intern/include
34         extern/include
35         ../blenlib
36         ../blenloader
37         ../makesdna
38         ../makesrna
39         ../blenkernel
40         ../imbuf
41         ../include
42         ../../kernel/gen_messaging
43         ../../../intern/smoke/extern
44         ../../../intern/guardedalloc
45         ../freestyle
46 )
47
48 IF(WIN32)
49         LIST(APPEND INC ${PTHREADS_INC})
50 ENDIF(WIN32)
51
52 IF(WITH_IMAGE_OPENEXR)
53         ADD_DEFINITIONS(-DWITH_OPENEXR)
54 ENDIF(WITH_IMAGE_OPENEXR)
55
56 IF(WITH_QUICKTIME)
57         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
58         ADD_DEFINITIONS(-DWITH_QUICKTIME)
59 ENDIF(WITH_QUICKTIME)
60
61 IF(APPLE)
62         IF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
63                 SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
64                 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
65         ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
66 ENDIF(APPLE)
67
68 BLENDERLIB_NOLIST(bf_render "${SRC}" "${INC}")