diff --git a/CMakeLists.txt b/CMakeLists.txt index f7039e5027b..16009b8483c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,12 +135,21 @@ include(singularity-eos/kokkos) include(singularity-eos/spiner) include(singularity-eos/ports-of-call) -add_library(singularity-eos) +add_library(singularity-eos INTERFACE) add_library(singularity-eos::singularity-eos ALIAS singularity-eos) +add_library(singularity-eos_Interface INTERFACE) -# ? -target_include_directories(singularity-eos - PUBLIC $) + +add_library(singularity-eos::singularity-eos_Interface ALIAS singularity-eos_Interface) +target_link_libraries(singularity-eos INTERFACE singularity-eos_Interface) + +if(SINGULARITY_BUILD_CLOSURE) + add_library(singularity-eos_Library) + set_target_properties(singularity-eos_Library PROPERTIES OUTPUT_NAME singularity-eos) + target_link_libraries(singularity-eos_Library PRIVATE singularity-eos_Interface) + add_library(singularity-eos::singularity-eos_Library ALIAS singularity-eos_Library) + target_link_libraries(singularity-eos INTERFACE singularity-eos_Library) +endif() # ------------------------------------------------------------------------------# # Compiler & language setup @@ -241,21 +250,21 @@ endif() # defines if(SINGULARITY_USE_SINGLE_LOGS) - target_compile_definitions(singularity-eos PUBLIC SINGULARITY_USE_SINGLE_LOGS) + target_compile_definitions(singularity-eos_Interface INTERFACE SINGULARITY_USE_SINGLE_LOGS) endif() if(SINGULARITY_USE_HIGH_RISK_MATH) - target_compile_definitions(singularity-eos - PUBLIC SINGULARITY_USE_HIGH_RISK_MATH) + target_compile_definitions(singularity-eos_Interface + INTERFACE SINGULARITY_USE_HIGH_RISK_MATH) endif() if(SINGULARITY_TEST_SESAME) - target_compile_definitions(singularity-eos PRIVATE SINGULARITY_TEST_SESAME) + target_compile_definitions(singularity-eos_Interface INTERFACE SINGULARITY_TEST_SESAME) endif() if(SINGULARITY_BUILD_CLOSURE) - target_compile_definitions(singularity-eos PRIVATE SINGULARITY_BUILD_CLOSURE) + target_compile_definitions(singularity-eos_Interface INTERFACE SINGULARITY_BUILD_CLOSURE) endif() if(SINGULARITY_USE_HELMHOLTZ) - target_compile_definitions(singularity-eos PUBLIC SINGULARITY_USE_HELMHOLTZ) + target_compile_definitions(singularity-eos_Interface INTERFACE SINGULARITY_USE_HELMHOLTZ) endif() # ------------------------------------------------------------------------------# @@ -274,12 +283,12 @@ endif() # cases. if(SINGULARITY_USE_SPINER_WITH_HDF5) - singularity_enable_hdf5(singularity-eos) + singularity_enable_hdf5(singularity-eos_Interface) endif() if(SINGULARITY_USE_EOSPAC) # NB This will add the `eospac-wrapper` directory. - singularity_enable_eospac(singularity-eos) + singularity_enable_eospac(singularity-eos_Interface) endif() if(SINGULARITY_SUBMODULE_MODE) @@ -320,23 +329,23 @@ else() endif() -singularity_enable_mpark_variant(singularity-eos) -singularity_enable_ports_of_call(singularity-eos) +singularity_enable_mpark_variant(singularity-eos_Interface) +singularity_enable_ports_of_call(singularity-eos_Interface) if(SINGULARITY_USE_SPINER) - singularity_enable_spiner(singularity-eos) + singularity_enable_spiner(singularity-eos_Interface) # if(SINGULARITY_USE_SPINER_WITH_HDF5) - # singularity_enable_hdf5(singularity-eos) endif() + # singularity_enable_hdf5(singularity-eos_Interface) endif() endif() if(SINGULARITY_USE_KOKKOS) - singularity_enable_kokkos(singularity-eos) + singularity_enable_kokkos(singularity-eos_Interface) if(SINGULARITY_USE_KOKKOSKERNELS) - singularity_enable_kokkoskernels(singularity-eos) + singularity_enable_kokkoskernels(singularity-eos_Interface) endif() endif() if(SINGULARITY_USE_EIGEN) - singularity_enable_eigen(singularity-eos) + singularity_enable_eigen(singularity-eos_Interface) endif() # ----------------------------------------------------------------------------# @@ -387,49 +396,51 @@ endforeach() # TODO(JMM): Kind of nice to have? get_property(eos_headers GLOBAL PROPERTY EOS_HEADERS) -get_property(eos_srcs GLOBAL PROPERTY EOS_SRCS) +target_sources(singularity-eos_Interface PRIVATE ${eos_headers}) message(VERBOSE "EOS Headers:\n\t${eos_headers}") -message(VERBOSE "EOS Sources:\n\t${eos_srcs}") -target_sources(singularity-eos PRIVATE ${eos_srcs} ${eos_headers}) +if(SINGULARITY_BUILD_CLOSURE) + get_property(eos_srcs GLOBAL PROPERTY EOS_SRCS) + target_sources(singularity-eos_Library PRIVATE ${eos_srcs}) + message(VERBOSE "EOS Library Sources:\n\t${eos_srcs}") +endif() if(SINGULARITY_USE_FORTRAN) # Turn on preprocessor for fortran files - set_target_properties(singularity-eos PROPERTIES Fortran_PREPROCESS ON) + set_target_properties(singularity-eos_Library PROPERTIES Fortran_PREPROCESS ON) # make sure .mods are placed in build path, and installed along with includes - set_target_properties(singularity-eos PROPERTIES Fortran_MODULE_DIRECTORY + set_target_properties(singularity-eos_Library PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/fortran) target_include_directories( - singularity-eos INTERFACE $ + singularity-eos_Library INTERFACE $ $) - set_target_properties(singularity-eos PROPERTIES Fortran_PREPROCESS ON) endif() # SINGULARITY_USE_FORTRAN -target_include_directories( - singularity-eos PUBLIC $ - $) -target_include_directories( - singularity-eos PUBLIC $) +target_include_directories(singularity-eos_Interface INTERFACE + $ + $ + $ +) get_property(plugin_include_paths GLOBAL PROPERTY PLUGIN_INCLUDE_PATHS) foreach(path ${plugin_include_paths}) - target_include_directories(singularity-eos PUBLIC $) + target_include_directories(singularity-eos_Interface INTERFACE $) endforeach() # plug in collected includes/libs/definitions target_include_directories( - singularity-eos + singularity-eos_Interface PUBLIC ${SINGULARITY_PUBLIC_INCS} PRIVATE ${SINGULARITY_PRIVATE_INCS}) target_link_libraries( - singularity-eos + singularity-eos_Interface PUBLIC ${SINGULARITY_PUBLIC_LIBS} PRIVATE ${SINGULARITY_PRIVATE_LIBS}) target_compile_definitions( - singularity-eos + singularity-eos_Interface PUBLIC ${SINGULARITY_PUBLIC_DEFINES} PRIVATE ${SINGULARITY_PRIVATE_DEFINES}) @@ -448,9 +459,8 @@ set(with_better_flags "$") set(xlfix "$<${with_xlcxx}:-std=c++1y;-qxflag=disable__cplusplusOverride>") target_compile_options( - singularity-eos - PRIVATE ${xlfix} - PUBLIC $<${with_cuda}: + singularity-eos_Interface + INTERFACE $<${with_cuda}: $<${with_cxx}: --expt-relaxed-constexpr $<${with_warnings}: @@ -468,7 +478,10 @@ target_compile_options( > # cuda ) -target_link_options(singularity-eos PRIVATE ${xlfix}) +if(SINGULARITY_BUILD_CLOSURE) + target_compile_options(singularity-eos_Library PRIVATE ${xlfix}) + target_link_options(singularity-eos_Library PRIVATE ${xlfix}) +endif() # ----------------------------------------------------------------------------# # Export/install diff --git a/cmake/install.cmake b/cmake/install.cmake index 6656af37b04..88c22902736 100644 --- a/cmake/install.cmake +++ b/cmake/install.cmake @@ -55,27 +55,38 @@ install(FILES ${PROJECT_SOURCE_DIR}/cmake/FindEOSPAC.cmake # install export target # ----------------------------------------------------------------------------# install( - TARGETS singularity-eos - EXPORT singularity-eosTargets + TARGETS singularity-eos_Interface + EXPORT singularity-eos_Interface DESTINATION ${CMAKE_INSTALL_LIBDIR}) install( - EXPORT singularity-eosTargets - FILE singularity-eosTargets.cmake + EXPORT singularity-eos_Interface + FILE singularity-eos_Interface.cmake NAMESPACE "singularity-eos::" + COMPONENT singularity-eos_Interface DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/singularity-eos) +if(SINGULARITY_BUILD_CLOSURE) + install( + TARGETS singularity-eos_Library + EXPORT singularity-eos_Library + DESTINATION ${CMAKE_INSTALL_LIBDIR}) + + install( + EXPORT singularity-eos_Library + FILE singularity-eos_Library.cmake + NAMESPACE "singularity-eos::" + COMPONENT singularity-eos_Library + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/singularity-eos) +endif() + # ----------------------------------------------------------------------------# # Install headers # ----------------------------------------------------------------------------# # install singularity-eos headers -get_property(install_headers GLOBAL PROPERTY _install_headers) -list(LENGTH install_headers length) -math(EXPR max_index "${length} - 1") -foreach(index RANGE ${max_index}) - list(GET eos_headers ${index} src) - list(GET install_headers ${index} dst) +get_property(install_headers GLOBAL PROPERTY EOS_INSTALL_HEADERS) +foreach(src dst IN ZIP_LISTS eos_headers install_headers) get_filename_component(DIR ${dst} DIRECTORY) install(FILES ${src} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${DIR}) endforeach() # file @@ -97,10 +108,17 @@ endif() # same as install step, but just places the file in the build tree. useful for # downstream projects that use the source directly export( - EXPORT singularity-eosTargets - FILE ${CMAKE_CURRENT_BINARY_DIR}/singularity-eosTargets.cmake + EXPORT singularity-eos_Interface + FILE ${CMAKE_CURRENT_BINARY_DIR}/singularity-eos_Interface.cmake NAMESPACE singularity-eos::) +if(SINGULARITY_BUILD_CLOSURE) + export( + EXPORT singularity-eos_Library + FILE ${CMAKE_CURRENT_BINARY_DIR}/singularity-eos_Library.cmake + NAMESPACE singularity-eos::) +endif() + # ----------------------------------------------------------------------------# # Data files # ----------------------------------------------------------------------------# diff --git a/cmake/plugins.cmake b/cmake/plugins.cmake index 235b8830465..cb2cc7cc1b9 100644 --- a/cmake/plugins.cmake +++ b/cmake/plugins.cmake @@ -12,15 +12,19 @@ # publicly and display publicly, and to permit others to do so. #------------------------------------------------------------------------------# +set_property(GLOBAL PROPERTY EOS_SRCS "") set_property(GLOBAL PROPERTY EOS_HEADERS "") -set_property(GLOBAL PROPERTY _install_headers "") +set_property(GLOBAL PROPERTY EOS_INSTALL_HEADERS "") +set_property(GLOBAL PROPERTY PLUGIN_TESTS "") +set_property(GLOBAL PROPERTY PLUGIN_INCLUDE_PATHS "") + function(register_headers) set(keyword_args PLUGIN) cmake_parse_arguments(ARG "" "${keyword_args}" "" ${ARGN}) set(variadic_args ${ARG_UNPARSED_ARGUMENTS}) get_property(eos_headers GLOBAL PROPERTY EOS_HEADERS) - get_property(install_headers GLOBAL PROPERTY _install_headers) + get_property(install_headers GLOBAL PROPERTY EOS_INSTALL_HEADERS) foreach(arg IN LISTS variadic_args) file(RELATIVE_PATH relative_path ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) @@ -33,10 +37,9 @@ function(register_headers) endif() endforeach() set_property(GLOBAL PROPERTY EOS_HEADERS "${eos_headers}") - set_property(GLOBAL PROPERTY _install_headers "${install_headers}") + set_property(GLOBAL PROPERTY EOS_INSTALL_HEADERS "${install_headers}") endfunction() -set_property(GLOBAL PROPERTY EOS_SRCS "") function(register_srcs) get_property(eos_srcs GLOBAL PROPERTY EOS_SRCS) foreach(arg IN LISTS ARGN) @@ -46,8 +49,6 @@ function(register_srcs) set_property(GLOBAL PROPERTY EOS_SRCS "${eos_srcs}") endfunction() -set(PLUGIN_TESTS "") -set_property(GLOBAL PROPERTY PLUGIN_TESTS "") function(register_tests) get_property(plugin_tests GLOBAL PROPERTY PLUGIN_TESTS) foreach(arg IN LISTS ARGN) @@ -56,7 +57,6 @@ function(register_tests) set_property(GLOBAL PROPERTY PLUGIN_TESTS "${plugin_tests}") endfunction() -set_property(GLOBAL PROPERTY PLUGIN_INCLUDE_PATHS "") macro(export_plugin) get_property(plugin_include_paths GLOBAL PROPERTY PLUGIN_INCLUDE_PATHS) list(APPEND plugin_include_paths ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/cmake/singularity-eos/Eigen3.cmake b/cmake/singularity-eos/Eigen3.cmake index 04fbf99d38f..c8dd72a855b 100644 --- a/cmake/singularity-eos/Eigen3.cmake +++ b/cmake/singularity-eos/Eigen3.cmake @@ -19,5 +19,5 @@ macro(singularity_find_eigen) endmacro() macro(singularity_enable_eigen target) - target_link_libraries(${target} PUBLIC Eigen3::Eigen) + target_link_libraries(${target} INTERFACE Eigen3::Eigen) endmacro() diff --git a/cmake/singularity-eos/eospac.cmake b/cmake/singularity-eos/eospac.cmake index 42d1b160f85..ce7d6933de6 100644 --- a/cmake/singularity-eos/eospac.cmake +++ b/cmake/singularity-eos/eospac.cmake @@ -2,11 +2,11 @@ macro(singularity_enable_eospac target) if(NOT TARGET EOSPAC::eospac) find_package(EOSPAC REQUIRED) endif() - target_link_libraries(${target} PUBLIC EOSPAC::eospac) - target_compile_definitions(${target} PUBLIC SINGULARITY_USE_EOSPAC) + target_link_libraries(${target} INTERFACE EOSPAC::eospac) + target_compile_definitions(${target} INTERFACE SINGULARITY_USE_EOSPAC) add_subdirectory(${PROJECT_SOURCE_DIR}/eospac-wrapper) - target_link_libraries(${target} PUBLIC eospac-wrapper) + target_link_libraries(${target} INTERFACE eospac-wrapper) endmacro() diff --git a/cmake/singularity-eos/hdf5.cmake b/cmake/singularity-eos/hdf5.cmake index 83f58e5fdb2..f2a7d9390d5 100644 --- a/cmake/singularity-eos/hdf5.cmake +++ b/cmake/singularity-eos/hdf5.cmake @@ -67,23 +67,23 @@ macro(singularity_enable_hdf5 target) endif() endif() - target_include_directories(${target} SYSTEM PUBLIC ${HDF5_INCLUDE_DIRS}) - target_link_libraries(${target} PUBLIC ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES}) + target_include_directories(${target} SYSTEM INTERFACE ${HDF5_INCLUDE_DIRS}) + target_link_libraries(${target} INTERFACE ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES}) if(HDF5_IS_PARALLEL) # find_package(MPI COMPONENTS C CXX REQUIRED) - # target_link_libraries(${target} PUBLIC MPI::MPI_C MPI::MPI_CXX) + # target_link_libraries(${target} INTERFACE MPI::MPI_C MPI::MPI_CXX) enable_language(C) find_package( MPI COMPONENTS C CXX REQUIRED) - target_link_libraries(${target} PUBLIC MPI::MPI_CXX) + target_link_libraries(${target} INTERFACE MPI::MPI_CXX) set(SINGULARITY_USE_SPINER_WITH_PARALLEL_HDF5 ON CACHE BOOL "" FORCE) endif() - target_compile_definitions(${target} PUBLIC SINGULARITY_USE_HDF5) + target_compile_definitions(${target} INTERFACE SINGULARITY_USE_HDF5) endmacro() diff --git a/cmake/singularity-eos/kokkos.cmake b/cmake/singularity-eos/kokkos.cmake index fb782a028e8..6d56a8be321 100644 --- a/cmake/singularity-eos/kokkos.cmake +++ b/cmake/singularity-eos/kokkos.cmake @@ -23,9 +23,9 @@ endmacro() macro(singularity_enable_kokkos target) - target_link_libraries(${target} PUBLIC Kokkos::kokkos) + target_link_libraries(${target} INTERFACE Kokkos::kokkos) - target_compile_definitions(${target} PUBLIC PORTABILITY_STRATEGY_KOKKOS) + target_compile_definitions(${target} INTERFACE PORTABILITY_STRATEGY_KOKKOS) # #TODO: shouldn't be needed target_compile_definitions(${target} PUBLIC # SPINER_USE_KOKKOS) @@ -108,6 +108,6 @@ macro(singularity_find_kokkoskernels) endmacro() macro(singularity_enable_kokkoskernels target) - target_compile_definitions(${target} PUBLIC SINGULARITY_USE_KOKKOSKERNELS) - target_link_libraries(${target} PUBLIC Kokkos::kokkoskernels) + target_compile_definitions(${target} INTERFACE SINGULARITY_USE_KOKKOSKERNELS) + target_link_libraries(${target} INTERFACE Kokkos::kokkoskernels) endmacro() diff --git a/cmake/singularity-eos/mpark_variant.cmake b/cmake/singularity-eos/mpark_variant.cmake index ca67972a4bc..3a5776d4eee 100644 --- a/cmake/singularity-eos/mpark_variant.cmake +++ b/cmake/singularity-eos/mpark_variant.cmake @@ -21,5 +21,5 @@ macro(singularity_find_mpark_variant) endmacro() macro(singularity_enable_mpark_variant target) - target_link_libraries(${target} PUBLIC mpark_variant) + target_link_libraries(${target} INTERFACE mpark_variant) endmacro() diff --git a/cmake/singularity-eos/ports-of-call.cmake b/cmake/singularity-eos/ports-of-call.cmake index c38d85aabbd..6d1e1424e1b 100644 --- a/cmake/singularity-eos/ports-of-call.cmake +++ b/cmake/singularity-eos/ports-of-call.cmake @@ -9,5 +9,5 @@ macro(singularity_find_ports_of_call) endmacro() macro(singularity_enable_ports_of_call target) - target_link_libraries(${target} PUBLIC ports-of-call::ports-of-call) + target_link_libraries(${target} INTERFACE ports-of-call::ports-of-call) endmacro() diff --git a/cmake/singularity-eos/spiner.cmake b/cmake/singularity-eos/spiner.cmake index 3d5de88237d..c8c6568f615 100644 --- a/cmake/singularity-eos/spiner.cmake +++ b/cmake/singularity-eos/spiner.cmake @@ -35,9 +35,9 @@ macro(singularity_enable_spiner target) target_compile_definitions( ${target} - PUBLIC + INTERFACE $<$:SINGULARITY_USE_SPINER> $<$:SINGULARITY_USE_SPINER_WITH_HDF5> ) - target_link_libraries(${target} PUBLIC spiner::spiner) + target_link_libraries(${target} INTERFACE spiner::spiner) endmacro() diff --git a/config/singularity-eosConfig.cmake.in b/config/singularity-eosConfig.cmake.in index 7557387ab2f..494d1c92178 100644 --- a/config/singularity-eosConfig.cmake.in +++ b/config/singularity-eosConfig.cmake.in @@ -20,27 +20,50 @@ # ------------------------------------------------------------------------------# # add singularity-eos cmake files # ------------------------------------------------------------------------------# -get_filename_component(singularity-eos_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" - PATH) if(NOT SINGULARITY_EOS_CMAKE) - get_filename_component(singularity-eos_CMAKE_BASE_DIR - "${singularity-eos_CMAKE_DIR}" DIRECTORY) message( STATUS "Found singularity-eos CMake Modules (appending CMAKE_MODULE_PATH): " - ${singularity-eos_CMAKE_BASE_DIR}) - list(APPEND CMAKE_MODULE_PATH ${singularity-eos_CMAKE_BASE_DIR}) + ${CMAKE_CURRENT_LIST_DIR}) + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) set(SINGULARITY_EOS_CMAKE TRUE) endif() +# ------------------------------------------------------------------------------# +# check for selected components +# ------------------------------------------------------------------------------# +if(${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS) + foreach(comp IN LISTS ${CMAKE_FIND_PACKAGE_NAME}_comps) + if(NOT comp IN_LIST "Interface;Library") + set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "singularity-eos unknown component: ${comp}") + set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE) + return() + endif() + endforeach() + set(${CMAKE_FIND_PACKAGE_NAME}_comps ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENT}) +else() + set(${CMAKE_FIND_PACKAGE_NAME}_comps Interface Library) +endif() + +foreach(comp IN LISTS ${CMAKE_FIND_PACKAGE_NAME}_comps) + if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED_${comp} AND NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/singularity-eos_${comp}.cmake) + set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "singularity-eos missing required component: ${comp}") + set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE) + return() + endif() +endforeach() + + # ------------------------------------------------------------------------------# # library dependencies # ------------------------------------------------------------------------------# include(CMakeFindDependencyMacro) -find_dependency(ports-of-call) - -find_dependency(mpark_variant) +# header-only dependencies +if("Interface" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_comps) + find_dependency(ports-of-call) + find_dependency(mpark_variant) +endif() if(@SINGULARITY_USE_SPINER@) find_dependency(spiner) @@ -75,9 +98,22 @@ if(@SINGULARITY_USE_EOSPAC@) endif() endif() +foreach(comp IN LISTS ${CMAKE_FIND_PACKAGE_NAME}_comps) + include(${CMAKE_CURRENT_LIST_DIR}/singularity-eos_${comp}.cmake OPTIONAL) +endforeach() + # ------------------------------------------------------------------------------# -# singularity-eos imported targets +# singularity-eos convenience target # ------------------------------------------------------------------------------# if(NOT TARGET singularity-eos AND NOT singularity-eos_BINARY_DIR) - include(${singularity-eos_CMAKE_DIR}/singularity-eosTargets.cmake) + add_library(singularity-eos INTERFACE) + add_library(singularity-eos::singularity-eos ALIAS singularity-eos) + + if("Interface" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_comps) + target_link_libraries(singularity-eos INTERFACE singularity-eos::singularity-eos_Interface) + endif() + + if("Library" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_comps) + target_link_libraries(singularity-eos INTERFACE singularity-eos::singularity-eos_Library) + endif() endif() diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index e2f0a4e3cca..6111edb399c 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -23,7 +23,7 @@ pybind11_add_module(singularity_eos modifier_relativistic.cpp modifier_bilinear_ramp.cpp ) -target_link_libraries(singularity_eos PRIVATE singularity-eos) +target_link_libraries(singularity_eos PRIVATE singularity-eos_Interface) include(GNUInstallDirs) diff --git a/singularity-eos/CMakeLists.txt b/singularity-eos/CMakeLists.txt index e652ef465ac..ae5dee1bed0 100644 --- a/singularity-eos/CMakeLists.txt +++ b/singularity-eos/CMakeLists.txt @@ -35,7 +35,6 @@ register_headers( eos/default_variant.hpp base/hermite.hpp eos/eos_variant.hpp - eos/singularity_eos.hpp eos/eos_stellar_collapse.hpp eos/eos_ideal.hpp eos/eos_models.hpp @@ -58,8 +57,6 @@ register_headers( eos/eos_stiff.hpp ) -register_srcs(eos/eos.cpp) - if (SINGULARITY_BUILD_CLOSURE) register_headers(closure/mixed_cell_models.hpp) if (SINGULARITY_USE_FORTRAN)