]> git.lyx.org Git - features.git/blobdiff - src/tex2lyx/CMakeLists.txt
build with mingw on Windows and Linux
[features.git] / src / tex2lyx / CMakeLists.txt
index 789c3f86af5523ba69f4e6c1458afd7509d58e1b..c7ec504106bdda284a1a269df1a125444e96a3b9 100644 (file)
@@ -29,9 +29,7 @@ include_directories(BEFORE
        ${TOP_SRC_DIR}/src/support/minizip
        ${ZLIB_INCLUDE_DIR})
 
-add_definitions(-DTEX2LYX)
-
-if(WIN32)
+if(WIN32 AND NOT MINGW)
        set(FILE_RC ${TOP_CMAKE_PATH}/lyx.rc)
        message(STATUS "Using icon defined in resource file: ${FILE_RC}")
 endif()
@@ -67,11 +65,5 @@ project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
 
 add_subdirectory(test)
 
-if(LYX_BUNDLE)
-       install(TARGETS ${_tex2lyx}
-               RUNTIME DESTINATION bin
-               BUNDLE DESTINATION .)
-else()
-       install(TARGETS ${_tex2lyx} DESTINATION bin)
-endif()
+install(TARGETS ${_tex2lyx} DESTINATION ${LYX_UTILITIES_INSTALL_PATH})