mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix CMake for r31189.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31204 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
57f1c58598
commit
8326148f69
@ -104,10 +104,13 @@ macro(LYX_AUTOMOC)
|
||||
#set(_header ${_abs_PATH}/${_basename}.h)
|
||||
|
||||
set(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC})
|
||||
if (WIN32)
|
||||
set(_def -D_WIN32)
|
||||
endif()
|
||||
#set(_moc ${_abs_PATH}/${_current_MOC})
|
||||
add_custom_command(OUTPUT ${_moc}
|
||||
COMMAND ${QT_MOC_EXECUTABLE}
|
||||
ARGS ${_moc_INCS} ${_header} -o ${_moc}
|
||||
ARGS ${_def} ${_moc_INCS} ${_header} -o ${_moc}
|
||||
MAIN_DEPENDENCY ${_header})
|
||||
macro_add_file_dependencies(${_abs_FILE} ${_moc})
|
||||
endforeach (_current_MOC_INC)
|
||||
|
@ -45,6 +45,8 @@ if (ASPELL_FOUND)
|
||||
list(APPEND lyx_headers ${TOP_SRC_DIR}/src/AspellChecker.h)
|
||||
endif()
|
||||
|
||||
lyx_automoc(${TOP_SRC_DIR}/src/Server.cpp)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}
|
||||
${ZLIB_INCLUDE_DIR} ${QT_INCLUDES})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user