LYX_OPTION(ENABLE_EXPORT_TESTS "Enable for export tests" OFF ALL)
LYX_OPTION(ASAN "Use address sanitizer" OFF ALL)
LYX_COMBO(USE_QT "Use Qt version as frontend" QT4 QT5)
+LYX_OPTION(3RDPARTY_BUILD "Build 3rdparty libs" OFF ALL)
# GCC specific
LYX_OPTION(PROFILE "Build profile version" OFF GCC)
set(Include_used_spellchecker) # String will be inserted into config.h
if(LYX_3RDPARTY_BUILD)
- add_subdirectory(src/3rdparty/hunspell)
+ add_subdirectory(3rdparty/hunspell)
add_definitions(-DHUNSPELL_STATIC)
set(HUNSPELL_FOUND ON)
message(STATUS " * Hunspell:")
endif()
if(LYX_3RDPARTY_BUILD)
- add_subdirectory(src/3rdparty/libiconv)
- add_subdirectory(src/3rdparty/zlib)
+ add_subdirectory(3rdparty/libiconv)
+ set(HAVE_ICONV_CONST 1)
+ add_subdirectory(3rdparty/zlib)
endif()