Also install chapter files

coolant-mod
krzys-h 2015-08-05 19:37:26 +02:00
parent 0808337288
commit e36570bf86
1 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,14 @@ function(add_level_category level_category_dir)
add_level(${level_dir})
endforeach()
# Install all other chapter files
file(GLOB chapter_dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${level_category_dir}/chapter*)
foreach(chapter_dir ${chapter_dirs})
install(DIRECTORY ${chapter_dir}/ DESTINATION ${LEVEL_INSTALL_DATA_DIR}/${chapter_dir}
PATTERN "level*" EXCLUDE
PATTERN "chaptertitle.txt" EXCLUDE)
endforeach()
endfunction()
##