cmake: more fixes from Kornel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28102 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2009-01-11 20:52:14 +00:00
parent 138d393a17
commit fbdafecf52
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,9 @@ macro(lyx_install _parent_src_dir _gl_dir _file_type)
if(NOT _dir_list) if(NOT _dir_list)
set(_dir_list ${_parent_src_dir}/${_dir}) set(_dir_list ${_parent_src_dir}/${_dir})
endif() endif()
if(_glob_dir STREQUAL ".")
set(_dir_list ${_parent_src_dir}/${_dir}/.)
endif()
#message(STATUS "${_dir}/${_glob_dir} -> ${_dir_list} ") #message(STATUS "${_dir}/${_glob_dir} -> ${_dir_list} ")
foreach(_current_dir ${_dir_list}) foreach(_current_dir ${_dir_list})
file(GLOB _item_list ${_current_dir}/${_file_type}) file(GLOB _item_list ${_current_dir}/${_file_type})

View File

@ -7,6 +7,9 @@
project(lyx2lyx) project(lyx2lyx)
set(_project "scripts")
#include(../PyCompile)
include(FindPythonInterp) include(FindPythonInterp)
file(GLOB _lyx2lyx_py_files ${TOP_SRC_DIR}/lib/lyx2lyx/*.py) file(GLOB _lyx2lyx_py_files ${TOP_SRC_DIR}/lib/lyx2lyx/*.py)