]> git.lyx.org Git - features.git/blob - 3rdparty/mythes/CMakeLists.txt
Check layout type when inserting inset over selection
[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   cmake_policy(SET CMP0069 NEW)
6   if (LYX_USE_IPO MATCHES "ON")
7     set(LYX_IPO_SUPPORTED YES)
8   endif()
9 endif()
10
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})