+ ${TOP_SRC_DIR}/src/Section.cpp
+ ${TOP_SRC_DIR}/src/lyxcore.cpp)
+
+if(NOT APPLE)
+ list(REMOVE_ITEM lyx_sources
+ ${TOP_SRC_DIR}/src/AppleSpellChecker.cpp)
+ list(REMOVE_ITEM lyx_headers
+ ${TOP_SRC_DIR}/src/AppleSpellChecker.h)
+endif()
+
+list(REMOVE_ITEM lyx_headers
+ ${TOP_SRC_DIR}/src/EnchantChecker.h
+ ${TOP_SRC_DIR}/src/AspellChecker.h
+ ${TOP_SRC_DIR}/src/HunspellChecker.h
+ ${TOP_SRC_DIR}/src/Variables.h
+ ${TOP_SRC_DIR}/src/Section.h)
+
+if (HUNSPELL_FOUND)
+ list(APPEND lyx_sources ${TOP_SRC_DIR}/src/HunspellChecker.cpp)
+ list(APPEND lyx_headers ${TOP_SRC_DIR}/src/HunspellChecker.h)
+endif()