2019-04-22 16:49:03 +00:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
|
2019-11-09 15:56:16 +00:00
|
|
|
set(LYX_IPO_SUPPORTED FALSE)
|
2019-04-22 16:49:03 +00:00
|
|
|
if (POLICY CMP0069)
|
2019-11-09 15:56:16 +00:00
|
|
|
if (NOT LYX_DEBUG)
|
2019-07-30 13:19:56 +00:00
|
|
|
cmake_policy(SET CMP0069 NEW)
|
2019-11-09 15:56:16 +00:00
|
|
|
include(CheckIPOSupported)
|
|
|
|
check_ipo_supported(RESULT LYX_IPO_SUPPORTED)
|
2019-07-30 13:19:56 +00:00
|
|
|
endif()
|
2019-04-22 16:49:03 +00:00
|
|
|
endif()
|
2017-03-07 13:27:08 +00:00
|
|
|
|
|
|
|
set(VERSION "1.2.5")
|
|
|
|
set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/${VERSION})
|
|
|
|
|
|
|
|
file(GLOB support_mythes_sources ${SRCDIR}/*.cxx)
|
|
|
|
file(GLOB support_mythes_headers ${SRCDIR}/*.hxx)
|
|
|
|
|
|
|
|
include_directories(${VERSION})
|
|
|
|
|
|
|
|
#============================================================================
|
|
|
|
# lyxmytheslib
|
|
|
|
#============================================================================
|
|
|
|
|
|
|
|
add_library(mytheslibstatic STATIC ${support_mythes_sources} ${support_mythes_headers} )
|
|
|
|
|
|
|
|
|
|
|
|
set(MYTHESLIB_LIBRARY mytheslibstatic CACHE STRING "Mytheslib library" FORCE)
|
|
|
|
set(MYTHESLIB_INCLUDE_DIR ${SRCDIR} CACHE STRING "Mytheslib include dir" FORCE)
|
|
|
|
set(MYTHESLIB_FOUND CACHE STRING "Mytheslib found" FORCE )
|
|
|
|
|
2019-11-09 15:56:16 +00:00
|
|
|
set_target_properties(mytheslibstatic PROPERTIES
|
|
|
|
FOLDER "3rd_party"
|
|
|
|
INTERPROCEDURAL_OPTIMIZATION ${LYX_IPO_SUPPORTED})
|