cmake: adopted to libCuba 4.2.0.

This commit is contained in:
suter_a 2018-05-20 10:39:35 +02:00
parent da42b95813
commit 595fc89740
7 changed files with 45 additions and 12 deletions

View File

@ -164,11 +164,6 @@ if (nexus)
message(" NeXus found in ${NEXUS_INCLUDE_DIR}") message(" NeXus found in ${NEXUS_INCLUDE_DIR}")
endif (nexus) endif (nexus)
if (BMWlibs)
message("")
message(" CUBA found in //as35 STILL MISSING")
endif (BMWlibs)
message("") message("")
if (qt_based_tools) if (qt_based_tools)
if (Qt5Core_FOUND) if (Qt5Core_FOUND)

View File

@ -17,7 +17,7 @@ add_subdirectory(vegas)
#--- lib creation ------------------------------------------------------------- #--- lib creation -------------------------------------------------------------
add_library(cuba SHARED add_library(cuba SHARED
$<TARGET_OBJECTS:workerini> $<TARGET_OBJECTS:common>
$<TARGET_OBJECTS:cuhre> $<TARGET_OBJECTS:cuhre>
$<TARGET_OBJECTS:divonne> $<TARGET_OBJECTS:divonne>
$<TARGET_OBJECTS:suave> $<TARGET_OBJECTS:suave>

View File

@ -1,13 +1,17 @@
#--- workerini ---------------------------------------------------------------- #--- common -------------------------------------------------------------------
set(common_src Global.c)
set(common_src ${common_src} Data.c)
if (HAVE_FORK)
set(common_src ${common_src} Fork.c)
endif (HAVE_FORK)
#--- obj lib creation --------------------------------------------------------- #--- obj lib creation ---------------------------------------------------------
add_library(workerini OBJECT add_library(common OBJECT ${common_src})
WorkerIni.c
)
#--- make sure that the include directory is found ---------------------------- #--- make sure that the include directory is found ----------------------------
target_include_directories( target_include_directories(
workerini BEFORE PRIVATE common BEFORE PRIVATE
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}> $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
@ -18,6 +22,12 @@ set(COMP_DEF "-DHAVE_CONFIG_H")
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE") set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
target_compile_definitions( target_compile_definitions(
workerini PRIVATE ${COMP_DEF} common PRIVATE ${COMP_DEF}
) )
set(COMP_OPT "-O3")
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
set(COMP_OPT ${COMP_OPT} "-ffast-math")
target_compile_options(
common PRIVATE ${COMP_OPT}
)

View File

@ -17,8 +17,15 @@ target_include_directories(
#--- check for pre compile flags ---------------------------------------------- #--- check for pre compile flags ----------------------------------------------
set(COMP_DEF "-DHAVE_CONFIG_H") set(COMP_DEF "-DHAVE_CONFIG_H")
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE") set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
set(COMP_DEF ${COMP_DEF} "-Dcubafun_=libCuhrecubafun_")
target_compile_definitions( target_compile_definitions(
cuhre PRIVATE ${COMP_DEF} cuhre PRIVATE ${COMP_DEF}
) )
set(COMP_OPT "-O3")
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
set(COMP_OPT ${COMP_OPT} "-ffast-math")
target_compile_options(
cuhre PRIVATE ${COMP_OPT}
)

View File

@ -17,8 +17,15 @@ target_include_directories(
#--- check for pre compile flags ---------------------------------------------- #--- check for pre compile flags ----------------------------------------------
set(COMP_DEF "-DHAVE_CONFIG_H") set(COMP_DEF "-DHAVE_CONFIG_H")
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE") set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
set(COMP_DEF ${COMP_DEF} "-Dcubafun_=libDivonnecubafun_")
target_compile_definitions( target_compile_definitions(
divonne PRIVATE ${COMP_DEF} divonne PRIVATE ${COMP_DEF}
) )
set(COMP_OPT "-O3")
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
set(COMP_OPT ${COMP_OPT} "-ffast-math")
target_compile_options(
divonne PRIVATE ${COMP_OPT}
)

View File

@ -17,8 +17,15 @@ target_include_directories(
#--- check for pre compile flags ---------------------------------------------- #--- check for pre compile flags ----------------------------------------------
set(COMP_DEF "-DHAVE_CONFIG_H") set(COMP_DEF "-DHAVE_CONFIG_H")
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE") set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
set(COMP_DEF ${COMP_DEF} "-Dcubafun_=libSuavecubafun_")
target_compile_definitions( target_compile_definitions(
suave PRIVATE ${COMP_DEF} suave PRIVATE ${COMP_DEF}
) )
set(COMP_OPT "-O3")
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
set(COMP_OPT ${COMP_OPT} "-ffast-math")
target_compile_options(
suave PRIVATE ${COMP_OPT}
)

View File

@ -17,8 +17,15 @@ target_include_directories(
#--- check for pre compile flags ---------------------------------------------- #--- check for pre compile flags ----------------------------------------------
set(COMP_DEF "-DHAVE_CONFIG_H") set(COMP_DEF "-DHAVE_CONFIG_H")
set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE") set(COMP_DEF ${COMP_DEF} "-DNOUNDERSCORE")
set(COMP_DEF ${COMP_DEF} "-Dcubafun_=libVegascubafun_")
target_compile_definitions( target_compile_definitions(
vegas PRIVATE ${COMP_DEF} vegas PRIVATE ${COMP_DEF}
) )
set(COMP_OPT "-O3")
set(COMP_OPT ${COMP_OPT} "-fomit-frame-pointer")
set(COMP_OPT ${COMP_OPT} "-ffast-math")
target_compile_options(
vegas PRIVATE ${COMP_OPT}
)