cmake: libCuba now containing the right symbols for c++/c.
This commit is contained in:
15
src/external/libCuba/src/cuhre/CMakeLists.txt
vendored
15
src/external/libCuba/src/cuhre/CMakeLists.txt
vendored
@ -1,29 +1,22 @@
|
||||
#--- cuhre --------------------------------------------------------------------
|
||||
|
||||
#--- obj lib creation ---------------------------------------------------------
|
||||
add_library(cuhre OBJECT
|
||||
add_library(cuhre OBJECT
|
||||
Cuhre.c
|
||||
)
|
||||
|
||||
#--- make sure that the include directory is found ----------------------------
|
||||
target_include_directories(
|
||||
cuhre BEFORE PRIVATE
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../common>
|
||||
)
|
||||
|
||||
#--- check for pre compile flags ----------------------------------------------
|
||||
set(COMP_DEF "")
|
||||
if (HAVE_FORK)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_FORK")
|
||||
endif (HAVE_FORK)
|
||||
if (HAVE_ALLOCA_H)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_ALLOCA_H")
|
||||
endif (HAVE_ALLOCA_H)
|
||||
if (HAVE_SHMGET)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_SHMGET")
|
||||
endif (HAVE_SHMGET)
|
||||
set(COMP_DEF "-DHAVE_CONFIG_H")
|
||||
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
|
||||
|
||||
target_compile_definitions(
|
||||
cuhre PRIVATE ${COMP_DEF}
|
||||
|
13
src/external/libCuba/src/divonne/CMakeLists.txt
vendored
13
src/external/libCuba/src/divonne/CMakeLists.txt
vendored
@ -8,22 +8,15 @@ add_library(divonne OBJECT
|
||||
#--- make sure that the include directory is found ----------------------------
|
||||
target_include_directories(
|
||||
divonne BEFORE PRIVATE
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../common>
|
||||
)
|
||||
|
||||
#--- check for pre compile flags ----------------------------------------------
|
||||
set(COMP_DEF "")
|
||||
if (HAVE_FORK)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_FORK")
|
||||
endif (HAVE_FORK)
|
||||
if (HAVE_ALLOCA_H)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_ALLOCA_H")
|
||||
endif (HAVE_ALLOCA_H)
|
||||
if (HAVE_SHMGET)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_SHMGET")
|
||||
endif (HAVE_SHMGET)
|
||||
set(COMP_DEF "-DHAVE_CONFIG_H")
|
||||
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
|
||||
|
||||
target_compile_definitions(
|
||||
divonne PRIVATE ${COMP_DEF}
|
||||
|
13
src/external/libCuba/src/suave/CMakeLists.txt
vendored
13
src/external/libCuba/src/suave/CMakeLists.txt
vendored
@ -8,22 +8,15 @@ add_library(suave OBJECT
|
||||
#--- make sure that the include directory is found ----------------------------
|
||||
target_include_directories(
|
||||
suave BEFORE PRIVATE
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../common>
|
||||
)
|
||||
|
||||
#--- check for pre compile flags ----------------------------------------------
|
||||
set(COMP_DEF "")
|
||||
if (HAVE_FORK)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_FORK")
|
||||
endif (HAVE_FORK)
|
||||
if (HAVE_ALLOCA_H)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_ALLOCA_H")
|
||||
endif (HAVE_ALLOCA_H)
|
||||
if (HAVE_SHMGET)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_SHMGET")
|
||||
endif (HAVE_SHMGET)
|
||||
set(COMP_DEF "-DHAVE_CONFIG_H")
|
||||
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
|
||||
|
||||
target_compile_definitions(
|
||||
suave PRIVATE ${COMP_DEF}
|
||||
|
13
src/external/libCuba/src/vegas/CMakeLists.txt
vendored
13
src/external/libCuba/src/vegas/CMakeLists.txt
vendored
@ -8,22 +8,15 @@ add_library(vegas OBJECT
|
||||
#--- make sure that the include directory is found ----------------------------
|
||||
target_include_directories(
|
||||
vegas BEFORE PRIVATE
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../common>
|
||||
)
|
||||
|
||||
#--- check for pre compile flags ----------------------------------------------
|
||||
set(COMP_DEF "")
|
||||
if (HAVE_FORK)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_FORK")
|
||||
endif (HAVE_FORK)
|
||||
if (HAVE_ALLOCA_H)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_ALLOCA_H")
|
||||
endif (HAVE_ALLOCA_H)
|
||||
if (HAVE_SHMGET)
|
||||
set(COMP_DEF ${COMP_DEF} "-DHAVE_SHMGET")
|
||||
endif (HAVE_SHMGET)
|
||||
set(COMP_DEF "-DHAVE_CONFIG_H")
|
||||
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
|
||||
|
||||
target_compile_definitions(
|
||||
vegas PRIVATE ${COMP_DEF}
|
||||
|
Reference in New Issue
Block a user