diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-29 07:35:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-29 07:35:56 +0300 |
commit | e8397e6193452f6e93a19c5aa31d5effaff54f25 (patch) | |
tree | c4adb230624abb1c92b31482605e1927e819e6d2 /build_files/cmake/macros.cmake | |
parent | 4c82be95fdaa4bef2f186b12ac28f58fa9a40564 (diff) |
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.
Diffstat (limited to 'build_files/cmake/macros.cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 8 |
1 files changed, 2 insertions, 6 deletions
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}) |