#cmake bug: globbing with * also returns directories on Windows
set(files_list ${_item_list})
foreach(_current_item ${_item_list})
- if(IS_DIRECTORY ${_current_item})
- #message(STATUS "removing ${_current_item}")
- if(files_list)
+ if(files_list)
+ if(IS_DIRECTORY ${_current_item})
+ #message(STATUS "removing dir ${_current_item}")
list(REMOVE_ITEM files_list "${_current_item}")
- endif()
+ else()
+ if(_current_item MATCHES "/\\.[^/]+$")
+ #message(STATUS "removing hidden ${_current_item}")
+ list(REMOVE_ITEM files_list "${_current_item}")
+ endif()
+ endif()
endif()
endforeach(_current_item)
if(files_list)
- list(REMOVE_ITEM files_list "${_current_dir}/.svn")
list(REMOVE_ITEM files_list "${_current_dir}/Makefile.in")
list(REMOVE_ITEM files_list "${_current_dir}/Makefile.am")
list(REMOVE_ITEM files_list "${_current_dir}/layouttranslations")
lyx_install(${TOP_SRC_DIR}/lib . * .)
if(UNIX)
- install(FILES ${TOP_SRC_DIR}/lib/lyx.desktop DESTINATION applications)
+ if (LYX_PROGRAM_SUFFIX)
+ install(FILES ${TOP_SRC_DIR}/lib/lyx.desktop DESTINATION applications RENAME lyx${PROGRAM_SUFFIX}.desktop)
+ else()
+ install(FILES ${TOP_SRC_DIR}/lib/lyx.desktop DESTINATION applications)
+ endif()
endif()