X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2FCMakeLists.txt;h=0debbeb022d96a99bf0aa38f28e54e6b530373e3;hb=3d373d91351babe062233359a437304a7b3e2b63;hp=448c3316a973430897220abf618f9166d7fd9523;hpb=5c1666c0e1370eb3ec5d0a5981684cc199810dcd;p=lyx.git diff --git a/src/tex2lyx/CMakeLists.txt b/src/tex2lyx/CMakeLists.txt index 448c3316a9..0debbeb022 100644 --- a/src/tex2lyx/CMakeLists.txt +++ b/src/tex2lyx/CMakeLists.txt @@ -13,9 +13,9 @@ set(LINKED_sources ${TOP_SRC_DIR}/src/lengthcommon.cpp) set(LINKED_headers) foreach(_src insets/InsetLayout Color Counters - Encoding FloatList Floating + Encoding FloatList Floating FontInfo Layout LayoutFile LayoutModuleList Lexer ModuleList TextClass - FontInfo Spacing) + Spacing version) list(APPEND LINKED_sources ${TOP_SRC_DIR}/src/${_src}.cpp) list(APPEND LINKED_headers ${TOP_SRC_DIR}/src/${_src}.h) endforeach(_src) @@ -51,15 +51,17 @@ if(WIN32) endif() if(APPLE) - target_link_libraries(${_tex2lyx} "-framework Carbon") + target_link_libraries(${_tex2lyx} "-framework AppKit") endif() -if(NOT LYX_EXTERNAL_LIBINTL OR WIN32) - target_link_libraries(${_tex2lyx} intl) - add_dependencies(${_tex2lyx} intl_target) -endif() project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers) -install(TARGETS ${_tex2lyx} DESTINATION bin) +if(LYX_BUNDLE) + install(TARGETS ${_tex2lyx} + RUNTIME DESTINATION bin + BUNDLE DESTINATION .) +else() + install(TARGETS ${_tex2lyx} DESTINATION bin) +endif()