X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=4fbe440a340b8c2622a69ec9c16015a38bdddbcf;hb=7a000652c02f98dcff4d3c611b22af244409df73;hp=d81639bb33f76986d29877222427b5e660c47063;hpb=00e4902ea30f95cf3f0304fb50d4391dfb9d10c9;p=lyx.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d81639bb33..4fbe440a34 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,7 +1,7 @@ # This file is part of LyX, the document processor. # Licence details can be found in the file COPYING. # -# Copyright (c) 2006-2011 Peter Kümmel, +# Copyright (c) 2006-2011 Peter K�mmel, # project(${_lyx}) @@ -17,6 +17,9 @@ add_subdirectory(insets) add_subdirectory(mathed) add_subdirectory(support) add_subdirectory(tex2lyx) +if (APPLE) + add_subdirectory(convert) +endif() if (UNIX) add_subdirectory(client) endif() @@ -92,8 +95,10 @@ if (LYX_VLD) endif() if(WIN32 AND NOT MINGW) - set(FILE_RC ${TOP_CMAKE_PATH}/lyx.rc) - message(STATUS "Using icon defined in resource file: ${FILE_RC}") + set(FILE_RC ${TOP_SRC_DIR}/src/lyxwinres.rc) + file(COPY ${TOP_SRC_DIR}/development/Win32/packaging/icons/lyx.ico DESTINATION ${CMAKE_BINARY_DIR}) + file(COPY ${TOP_SRC_DIR}/development/Win32/packaging/icons/lyx_doc.ico DESTINATION ${CMAKE_BINARY_DIR}) + message(STATUS "Using icon defined in resource file: ${FILE_RC}") endif() lyx_find_info_files(LyXInfoFiles ${TOP_SRC_DIR}/*) @@ -119,8 +124,9 @@ add_executable(${_lyx} add_dependencies(${_lyx} lyx_version) -set_target_properties(${_lyx} PROPERTIES FOLDER "applications/LyX") - +set_target_properties(${_lyx} PROPERTIES + FOLDER "applications/LyX" + INTERPROCEDURAL_OPTIMIZATION ${LYX_IPO_SUPPORTED}) lyx_add_gcc_pch(${_lyx}) target_link_libraries(${_lyx}