Build: Out of source build improvements for holidays, themes

- Using a separate build directory currently fails during make install
  because none of the files under doc/holidays or doc/themes are being
  by cmake into the build dir.  Add CMakeLists.txt files for both
  doc/holidays and doc/themes, and add the corresponding add_subdirectory
  directives to doc/CMakeLists.txt, to ensure these files are always
  copied into the build directory and installed correctly.
This commit is contained in:
Kent R. Spillner 2016-06-28 17:45:03 -04:00 committed by Paul Beckingham
parent 9cf5c2d05f
commit 5bb6a0ebff
3 changed files with 17 additions and 3 deletions

View file

@ -2,8 +2,9 @@ cmake_minimum_required (VERSION 2.8)
message ("-- Configuring documentation") message ("-- Configuring documentation")
add_subdirectory (holidays)
add_subdirectory (themes)
configure_file (man/timew.1.in man/timew.1) configure_file (man/timew.1.in man/timew.1)
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man/ DESTINATION ${TIMEW_MAN1DIR} FILES_MATCHING PATTERN "*.1") install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man/ DESTINATION ${TIMEW_MAN1DIR} FILES_MATCHING PATTERN "*.1")
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/themes/ DESTINATION ${TIMEW_DOCDIR}/themes)
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/holidays/ DESTINATION ${TIMEW_DOCDIR}/holidays)

View file

@ -0,0 +1,7 @@
cmake_minimum_required (VERSION 2.8)
message ("-- Configuring holiday documentation")
install (FILES README DESTINATION ${TIMEW_DOCDIR}/doc/holidays)
install (FILES holidays.en-US DESTINATION ${TIMEW_DOCDIR}/doc/holidays)
install (FILES refresh DESTINATION ${TIMEW_DOCDIR}/doc/holidays)

6
doc/themes/CMakeLists.txt vendored Normal file
View file

@ -0,0 +1,6 @@
cmake_minimum_required (VERSION 2.8)
message ("-- Configuring theme documentation")
install (FILES README DESTINATION ${TIMEW_DOCDIR}/doc/themes)
install (FILES dark.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes)