@ -189,6 +189,17 @@ if(BUILD_SKELETON)
add_subdirectory ( skeleton )
add_subdirectory ( skeleton )
endif ( )
endif ( )
macro ( subdirlist result subdir )
file ( GLOB children ABSOLUTE ${ subdir } / ${ subdir } /*/ )
set ( dirlist "" )
foreach ( child ${ children } )
if ( IS_DIRECTORY ${ child } )
file ( RELATIVE_PATH child ${ CMAKE_CURRENT_SOURCE_DIR } / ${ subdir } ${ child } )
list ( APPEND dirlist ${ child } )
endif ( )
endforeach ( )
set ( ${ result } ${ dirlist } )
endmacro ( )
# T o a d d " e x t e r n a l " p l u g i n s w i t h o u t c o m m i t t i n g t h e m t o t h e D F H a c k r e p o :
# T o a d d " e x t e r n a l " p l u g i n s w i t h o u t c o m m i t t i n g t h e m t o t h e D F H a c k r e p o :
#
#
@ -204,7 +215,7 @@ endif()
# 4 . b u i l d D F H a c k a s n o r m a l . T h e p l u g i n s y o u a d d e d w i l l b e b u i l t a s w e l l .
# 4 . b u i l d D F H a c k a s n o r m a l . T h e p l u g i n s y o u a d d e d w i l l b e b u i l t a s w e l l .
if ( NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/external/CMakeLists.txt" )
if ( NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/external/CMakeLists.txt" )
file( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/external/CMakeLists.txt"
set( content_str
" # A d d e x t e r n a l p l u g i n s h e r e - t h i s f i l e i s i g n o r e d b y g i t
" # A d d e x t e r n a l p l u g i n s h e r e - t h i s f i l e i s i g n o r e d b y g i t
# R e c o m m e n d e d : u s e add_subdirectory ( ) f o r f o l d e r s t h a t y o u h a v e c r e a t e d w i t h i n
# R e c o m m e n d e d : u s e add_subdirectory ( ) f o r f o l d e r s t h a t y o u h a v e c r e a t e d w i t h i n
@ -212,9 +223,14 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/external/CMakeLists.txt")
# S e e t h e e n d o f / p l u g i n s / C M a k e L i s t s . t x t f o r m o r e d e t a i l s .
# S e e t h e e n d o f / p l u g i n s / C M a k e L i s t s . t x t f o r m o r e d e t a i l s .
" )
" )
subdirlist ( SUBDIRS external )
foreach ( subdir ${ SUBDIRS } )
set ( content_str "${content_str}add_subdirectory(${subdir})\n" )
endforeach ( )
file ( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/external/CMakeLists.txt" ${ content_str } )
endif ( )
endif ( )
include ( "${CMAKE_CURRENT_SOURCE_DIR}/external/CMakeLists.txt" )
add_subdirectory( external )
# f o r b a c k w a r d s c o m p a t i b i l i t y
# f o r b a c k w a r d s c o m p a t i b i l i t y
if ( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.custom.txt" )
if ( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.custom.txt" )