- configure_file(configCompiler.h.cmake ${CMAKE_BINARY_DIR}/configCompiler.h)
-endif()
-
-configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
-
-find_package(ICONV REQUIRED)
-add_definitions(-DHAVE_ICONV=1)
-
-
-include_directories(
- ${CMAKE_BINARY_DIR}
- ${TOP_SRC_DIR}/src)
-
-
-if(LYX_USE_EXTERNAL_BOOST)
- message(STATUS "Searching for boost")
- find_package(Boost COMPONENTS signals regex)
- if(Boost_FOUND)
- message(STATUS "Boost found")
- message(STATUS "Boost-libs = ${Boost_LIBRARIES}")
- set(Lyx_Boost_Libraries ${Boost_LIBRARIES})
- else()
- message(FATAL_ERROR "Boost not found" ${Boost_ERROR_REASON})
- endif()
-else()
- if(LYX_USE_TR1_REGEX)
- set(Lyx_Boost_Libraries boost_signals)
- else()
- set(Lyx_Boost_Libraries boost_signals boost_regex)
- endif()
- add_definitions(-DBOOST_USER_CONFIG="<config.h>")
- include_directories(${TOP_SRC_DIR}/boost)
- add_subdirectory(boost)