]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/CMakeLists.txt
Was already supported
[lyx.git] / src / tex2lyx / CMakeLists.txt
index 448c3316a973430897220abf618f9166d7fd9523..0debbeb022d96a99bf0aa38f28e54e6b530373e3 100644 (file)
@@ -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()