diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-07 14:08:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-07 14:08:47 +0300 |
commit | 7ad97b04b7faf4640d953b8c6066b88b9154ba89 (patch) | |
tree | 74df18f130f6797b533cc82946ef2e90afa0570b /source/blender/makesrna | |
parent | 841c50b5e240e1bb2412dccbf559684105f4056e (diff) |
cmake: share the DNA_*.h list definition between makesrna and makesdna
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/CMakeLists.txt | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/source/blender/makesrna/intern/CMakeLists.txt b/source/blender/makesrna/intern/CMakeLists.txt index ecb0d903ae6..3a6496fab60 100644 --- a/source/blender/makesrna/intern/CMakeLists.txt +++ b/source/blender/makesrna/intern/CMakeLists.txt @@ -38,6 +38,12 @@ list(REMOVE_ITEM DEFSRC ${APISRC}) string(REGEX REPLACE "rna_([a-zA-Z0-9_-]*).c" "${CMAKE_CURRENT_BINARY_DIR}/rna_\\1_gen.c" GENSRC "${DEFSRC}") set_source_files_properties(GENSRC PROPERTIES GENERATED true) +set(SRC_RNA_INC + ../RNA_access.h + ../RNA_define.h + ../RNA_enum_types.h + ../RNA_types.h +) set(SRC makesrna.c @@ -48,27 +54,9 @@ set(SRC ../../../../intern/guardedalloc/intern/mmap_win.c ) -blender_include_dirs( - ../../../../intern/audaspace/intern - ../../../../intern/guardedalloc - ../../../../intern/memutil - .. - ../../makesdna - ../../blenkernel - ../../blenlib - ../../blenfont - ../../ikplugin - ../../windowmanager - ../../editors/include - ../../gpu - ../../imbuf - ../../render/extern/include - ../../../../extern/glew/include - . +set(INC ) -file(GLOB INC_FILES ../*.h ../../makesdna/*.h) - if(WITH_PYTHON) add_definitions(-DWITH_PYTHON) endif() @@ -137,7 +125,26 @@ if(WITH_JACK) endif() # Build makesrna executable -add_executable(makesrna ${SRC} ${INC_FILES}) +blender_include_dirs( + . + .. + ../../blenkernel + ../../blenlib + ../../blenfont + ../../gpu + ../../imbuf + ../../ikplugin + ../../makesdna + ../../windowmanager + ../../editors/include + ../../render/extern/include + ../../../../extern/glew/include + ../../../../intern/audaspace/intern + ../../../../intern/guardedalloc + ../../../../intern/memutil +) + +add_executable(makesrna ${SRC} ${SRC_RNA_INC} ${SRC_DNA_INC}) target_link_libraries(makesrna bf_dna) # Output rna_*_gen.c @@ -153,11 +160,7 @@ set(SRC rna_access.c ${GENSRC} - ../RNA_access.h - ../RNA_define.h - ../RNA_enum_types.h - ../RNA_types.h - + ${SRC_RNA_INC} rna_internal.h rna_internal_types.h rna_nodetree_types.h |