1 cmake_minimum_required(VERSION 3.1)
3 set(LYX_IPO_SUPPORTED FALSE)
5 cmake_policy(SET CMP0069 NEW)
6 if (LYX_USE_IPO MATCHES "ON")
7 set(LYX_IPO_SUPPORTED YES)
13 set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/${VERSION})
15 file(GLOB support_mythes_sources ${SRCDIR}/*.cxx)
16 file(GLOB support_mythes_headers ${SRCDIR}/*.hxx)
18 include_directories(${VERSION})
20 #============================================================================
22 #============================================================================
24 add_library(mytheslibstatic STATIC ${support_mythes_sources} ${support_mythes_headers} )
27 set(MYTHESLIB_LIBRARY mytheslibstatic CACHE STRING "Mytheslib library" FORCE)
28 set(MYTHESLIB_INCLUDE_DIR ${SRCDIR} CACHE STRING "Mytheslib include dir" FORCE)
29 set(MYTHESLIB_FOUND CACHE STRING "Mytheslib found" FORCE )
31 set_target_properties(mytheslibstatic PROPERTIES
33 INTERPROCEDURAL_OPTIMIZATION ${LYX_IPO_SUPPORTED})