use explicit file paths for CMake rather then globing, This is recommended by cmake devs.

globbing vs explicit is discussed here.
http://www.cmake.org/pipermail/cmake/2008-December/025694.html

Practical implications are:
- developers need to keep CMakeLists.txt files up to date.
- Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
This commit is contained in:
2010-10-23 04:05:55 +00:00
parent 54b3508444
commit c6976e7351
92 changed files with 1651 additions and 273 deletions

View File

@@ -19,8 +19,6 @@
#
# ***** END GPL LICENSE BLOCK *****
FILE(GLOB SRC *.c)
SET(INC
../include
../../blenkernel
@@ -32,6 +30,19 @@ SET(INC
../../../../intern/guardedalloc
)
SET(SRC
particle_boids.c
particle_edit.c
particle_object.c
physics_fluid.c
physics_ops.c
physics_pointcache.c
)
IF(WIN32)
LIST(APPEND INC ${PTHREADS_INC})
ENDIF(WIN32)
IF(NOT WITH_FLUID)
ADD_DEFINITIONS(-DDISABLE_ELBEEM)
ENDIF(NOT WITH_FLUID)
@@ -40,8 +51,4 @@ IF(WITH_OPENMP)
ADD_DEFINITIONS(-DPARALLEL=1)
ENDIF(WITH_OPENMP)
IF(WIN32)
LIST(APPEND INC ${PTHREADS_INC})
ENDIF(WIN32)
BLENDERLIB(bf_editor_physics "${SRC}" "${INC}")