mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
7d021a938c
With gnu compilers this adds -flto and -fno-fat-lto-objects to compiler and linker flags.
27 lines
856 B
CMake
27 lines
856 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
|
|
if (POLICY CMP0069)
|
|
cmake_policy(SET CMP0069 NEW)
|
|
endif()
|
|
|
|
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 )
|
|
|
|
set_target_properties(mytheslibstatic PROPERTIES FOLDER "3rd_party")
|