- ${TOP_SRC_DIR}/src/aspell.C
- ${TOP_SRC_DIR}/src/pspell.C
- ${TOP_SRC_DIR}/src/ispell.C
- ${TOP_SRC_DIR}/src/Variables.C
- ${TOP_SRC_DIR}/src/Sectioning.C)
-
-set( lyx_sources ${lyx_sources} ${CMAKE_CURRENT_BINARY_DIR}/version.C )
-
-if(ASPELL_FOUND)
+ ${TOP_SRC_DIR}/src/EnchantChecker.cpp
+ ${TOP_SRC_DIR}/src/AspellChecker.cpp
+ ${TOP_SRC_DIR}/src/HunspellChecker.cpp
+ ${TOP_SRC_DIR}/src/Variables.cpp
+ ${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()
+
+if (ASPELL_FOUND)