Compare commits
6 Commits
7cb811e4d1
...
5708fcd5e4
Author | SHA1 | Date | |
---|---|---|---|
5708fcd5e4 | |||
aa53289311 | |||
f500a10a0d | |||
6b7220351e | |||
2f3f45f2a0 | |||
7c22ac6b82 |
@@ -4,15 +4,15 @@ function(add_common_library target)
|
||||
set(oneValueArgs OUTPUT_NAME)
|
||||
set(multiValueArgs SOURCES)
|
||||
|
||||
cmake_parse_arguments(_LOCAL "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
cmake_parse_arguments(_PREFIX "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
if(_LOCAL_OUTPUT_NAME)
|
||||
set(output_name ${_LOCAL_OUTPUT_NAME})
|
||||
if(_PREFIX_OUTPUT_NAME)
|
||||
set(output_name ${_PREFIX_OUTPUT_NAME})
|
||||
else()
|
||||
set(output_name ${target})
|
||||
endif()
|
||||
|
||||
add_library(${target} OBJECT ${_LOCAL_SOURCES})
|
||||
add_library(${target} OBJECT ${_PREFIX_SOURCES})
|
||||
target_include_directories(
|
||||
${target} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include> $<INSTALL_INTERFACE:include/${target}>)
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include(cotire)
|
||||
include(cotire OPTIONAL)
|
||||
|
||||
if(COMMAND cotire)
|
||||
option(CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER "Enable precompiled headers" OFF)
|
||||
|
11
CMLibHighPrecisionMath.cmake
Normal file
11
CMLibHighPrecisionMath.cmake
Normal file
@@ -0,0 +1,11 @@
|
||||
find_package(Quadmath)
|
||||
if(QUADMATH_FOUND)
|
||||
add_definitions(-DHAVE_QUADMATH=1)
|
||||
else()
|
||||
find_package(MPFR)
|
||||
if(MPFR_FOUND)
|
||||
find_package(MPFRCppThirdparty)
|
||||
else()
|
||||
message(FATAL_ERROR "Nor Quadmath, nor MPFR found.")
|
||||
endif()
|
||||
endif()
|
1
thirdparty/cotire.cmake
vendored
1
thirdparty/cotire.cmake
vendored
@@ -640,6 +640,7 @@ function (cotire_get_target_include_directories _config _language _target _inclu
|
||||
endforeach()
|
||||
list (REMOVE_DUPLICATES _includeDirs)
|
||||
list (REMOVE_DUPLICATES _systemIncludeDirs)
|
||||
list (REMOVE_ITEM _systemIncludeDirs "/usr/include")
|
||||
if (CMAKE_${_language}_IMPLICIT_INCLUDE_DIRECTORIES)
|
||||
list (REMOVE_ITEM _includeDirs ${CMAKE_${_language}_IMPLICIT_INCLUDE_DIRECTORIES})
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user