From e8397e6193452f6e93a19c5aa31d5effaff54f25 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 29 Nov 2010 04:35:56 +0000 Subject: 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. --- build_files/cmake/macros.cmake | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'build_files/cmake/macros.cmake') diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index c5a00c474f5..c35c73cbb46 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -7,16 +7,12 @@ MACRO(BLENDERLIB_NOLIST MESSAGE(STATUS "Configuring library ${name}") - # Gather all headers - FILE(GLOB_RECURSE INC_ALL *.h) - INCLUDE_DIRECTORIES(${includes}) - ADD_LIBRARY(${name} ${INC_ALL} ${sources}) + ADD_LIBRARY(${name} ${sources}) # Group by location on disk SOURCE_GROUP("Source Files" FILES CMakeLists.txt) - SET(ALL_FILES ${sources} ${INC_ALL}) - FOREACH(SRC ${ALL_FILES}) + FOREACH(SRC ${sources}) GET_FILENAME_COMPONENT(SRC_EXT ${SRC} EXT) IF(${SRC_EXT} MATCHES ".h" OR ${SRC_EXT} MATCHES ".hpp") SOURCE_GROUP("Header Files" FILES ${SRC}) -- cgit v1.2.3