]> git.lyx.org Git - features.git/blob - 3rdparty/mythes/CMakeLists.txt
1b224a9d4c303e3c8ea0196328a6a560fa42f79a
[features.git] / 3rdparty / mythes / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.1)
2
3 set(LYX_IPO_SUPPORTED FALSE)
4 if (POLICY CMP0069)
5   if (NOT LYX_DEBUG)
6     cmake_policy(SET CMP0069 NEW)
7     include(CheckIPOSupported)
8     check_ipo_supported(RESULT LYX_IPO_SUPPORTED)
9   endif()
10 endif()
11
12 set(VERSION "1.2.5")
13 set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/${VERSION})
14
15 file(GLOB support_mythes_sources ${SRCDIR}/*.cxx)
16 file(GLOB support_mythes_headers ${SRCDIR}/*.hxx)
17
18 include_directories(${VERSION})
19
20 #============================================================================
21 # lyxmytheslib
22 #============================================================================
23
24 add_library(mytheslibstatic STATIC ${support_mythes_sources} ${support_mythes_headers} )
25
26
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 )
30
31 set_target_properties(mytheslibstatic PROPERTIES
32         FOLDER "3rd_party"
33         INTERPROCEDURAL_OPTIMIZATION ${LYX_IPO_SUPPORTED})