mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Add suffixed lyxconvert to cmake build.
This should amend f93ec4a
, but is not tested on apple
This commit is contained in:
parent
867abeac06
commit
c2eb1a1a72
@ -379,6 +379,7 @@ if(LYX_PROGRAM_SUFFIX AND NOT (APPLE AND LYX_BUNDLE))
|
||||
endif()
|
||||
set(_lyx "${PACKAGE_BASE}${PROGRAM_SUFFIX}")
|
||||
set(_tex2lyx tex2lyx${PROGRAM_SUFFIX})
|
||||
set(_convert lyxconvert${PROGRAM_SUFFIX})
|
||||
|
||||
add_custom_target(lyx_version ALL
|
||||
COMMAND ${CMAKE_COMMAND} -DTOP_SRC_DIR=${TOP_SRC_DIR} -DTOP_CMAKE_PATH=${TOP_CMAKE_PATH} -DTOP_BINARY_DIR=${TOP_BINARY_DIR} -DLYX_DATE=${LYX_DATE} -P ${TOP_SCRIPT_PATH}/LyXGetVersion.cmake
|
||||
|
@ -128,7 +128,9 @@ if(APPLE)
|
||||
install(FILES "${TOP_SRC_DIR}/development/MacOSX/PkgInfo" DESTINATION "${MACOSX_BUNDLE_STARTUP_COMMAND}/Contents")
|
||||
endif()
|
||||
|
||||
install(FILES "${TOP_SRC_DIR}/development/MacOSX/lyxeditor" DESTINATION "${LYX_UTILITIES_INSTALL_PATH}")
|
||||
foreach(_i lyxeditor maxima inkscape)
|
||||
install(FILES "${TOP_SRC_DIR}/development/MacOSX/${_i}" DESTINATION "${LYX_UTILITIES_INSTALL_PATH}")
|
||||
endforeach()
|
||||
install(FILES "${TOP_SRC_DIR}/development/MacOSX/LyX.icns" DESTINATION "${LYX_DATA_SUBDIR}")
|
||||
set(program_suffix ${PROGRAM_SUFFIX})
|
||||
elseif(UNIX)
|
||||
|
@ -17,6 +17,7 @@ add_subdirectory(insets)
|
||||
add_subdirectory(mathed)
|
||||
add_subdirectory(support)
|
||||
add_subdirectory(tex2lyx)
|
||||
add_subdirectory(convert)
|
||||
if (UNIX)
|
||||
add_subdirectory(client)
|
||||
endif()
|
||||
|
12
src/convert/CMakeLists.txt
Normal file
12
src/convert/CMakeLists.txt
Normal file
@ -0,0 +1,12 @@
|
||||
project(${_convert})
|
||||
|
||||
include_directories(${QT_INCLUDES})
|
||||
add_definitions(-DQT_NO_CAST_TO_ASCII -DQT_NO_STL)
|
||||
add_executable(${_convert} "${TOP_SRC_DIR}/src/convert/lyxconvert.cpp")
|
||||
|
||||
qt_use_modules(${_convert} Core Widgets)
|
||||
if(APPLE)
|
||||
target_link_libraries(${_convert} "-framework AppKit")
|
||||
endif()
|
||||
|
||||
install(TARGETS ${_convert} DESTINATION ${LYX_UTILITIES_INSTALL_PATH})
|
Loading…
Reference in New Issue
Block a user