include headers in cmake source, added a script to check for consistency, reporting missing headers & C files.

this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
This commit is contained in:
Campbell Barton
2010-11-29 04:35:56 +00:00
parent 4c82be95fd
commit e8397e6193
96 changed files with 1752 additions and 65 deletions

View File

@@ -90,10 +90,14 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
# Setup the exe sources and buildinfo
SET(EXESRC creator.c)
SET(SRC
creator.c
)
IF(WIN32 AND NOT UNIX)
LIST(APPEND EXESRC ../icons/winblender.rc)
LIST(APPEND SRC
../icons/winblender.rc
)
ENDIF(WIN32 AND NOT UNIX)
IF(WITH_BUILDINFO)
@@ -112,12 +116,14 @@ IF(WITH_BUILDINFO)
-DBUILD_SYSTEM="CMake"
)
LIST(APPEND EXESRC buildinfo.c)
LIST(APPEND SRC
buildinfo.c
)
ENDIF(WITH_BUILDINFO)
MESSAGE(STATUS "Configuring blender")
ADD_EXECUTABLE(blender ${EXETYPE} ${EXESRC})
ADD_EXECUTABLE(blender ${EXETYPE} ${SRC})
# Post build steps for bundling/packaging.