Skip to content

Commit

Permalink
add cmake install commands for component libraries (#3307)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsettgast authored Aug 27, 2024
1 parent 42966e9 commit 9019f15
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreComponents/codingUtilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ set_source_files_properties( Parsing.cpp PROPERTIES LANGUAGE CXX )

target_include_directories( codingUtilities PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS codingUtilities LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )


if( GEOS_ENABLE_TESTS )
add_subdirectory(tests)
Expand Down
2 changes: 2 additions & 0 deletions src/coreComponents/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ blt_add_library( NAME common
target_include_directories( common PUBLIC ${CMAKE_BINARY_DIR}/include )
target_include_directories( common PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS common LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

if( GEOS_ENABLE_TESTS )
add_subdirectory( unitTests )
add_subdirectory( format/table/unitTests )
Expand Down
2 changes: 2 additions & 0 deletions src/coreComponents/constitutive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ blt_add_library( NAME constitutive

target_include_directories( constitutive PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS constitutive LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

if( GEOS_ENABLE_TESTS )
add_subdirectory( unitTests )
endif( )
1 change: 1 addition & 0 deletions src/coreComponents/constitutiveDrivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ blt_add_library( NAME constitutiveDrivers
)

target_include_directories( constitutiveDrivers PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )
install( TARGETS constitutiveDrivers LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
1 change: 1 addition & 0 deletions src/coreComponents/dataRepository/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ blt_add_library( NAME dataRepository
)

target_include_directories( dataRepository PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )
install( TARGETS dataRepository LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )


if( GEOS_ENABLE_TESTS )
Expand Down
2 changes: 2 additions & 0 deletions src/coreComponents/denseLinearAlgebra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ blt_add_library( NAME denseLinearAlgebra

target_include_directories( denseLinearAlgebra PUBLIC ${CMAKE_CURRENT_LIST_DIR} )

install( TARGETS denseLinearAlgebra LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

if( GEOS_ENABLE_TESTS )
add_subdirectory( unitTests )
endif( )
Expand Down
1 change: 1 addition & 0 deletions src/coreComponents/discretizationMethods/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ blt_add_library( NAME discretizationMethods

target_include_directories( discretizationMethods PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS discretizationMethods LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
1 change: 1 addition & 0 deletions src/coreComponents/events/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ blt_add_library( NAME events

target_include_directories( events PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS events LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
1 change: 1 addition & 0 deletions src/coreComponents/fieldSpecification/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ blt_add_library( NAME fieldSpecification

target_include_directories( fieldSpecification PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS fieldSpecification LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
1 change: 1 addition & 0 deletions src/coreComponents/fileIO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ blt_add_library( NAME fileIO

target_include_directories( fileIO PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS fileIO LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )



1 change: 1 addition & 0 deletions src/coreComponents/finiteElement/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ blt_add_library( NAME finiteElement

target_include_directories( finiteElement PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS finiteElement LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

if( GEOS_ENABLE_TESTS )
add_subdirectory( unitTests )
Expand Down
1 change: 1 addition & 0 deletions src/coreComponents/finiteVolume/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ blt_add_library( NAME finiteVolume

target_include_directories( finiteVolume PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS finiteVolume LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
2 changes: 2 additions & 0 deletions src/coreComponents/functions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ blt_add_library( NAME functions

target_include_directories( functions PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS functions LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

if( GEOS_ENABLE_TESTS )
add_subdirectory( unitTests )
endif()
1 change: 1 addition & 0 deletions src/coreComponents/linearAlgebra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ blt_add_library( NAME linearAlgebra

target_include_directories( linearAlgebra PUBLIC ${CMAKE_CURRENT_LIST_DIR} )

install( TARGETS linearAlgebra LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

if( GEOS_ENABLE_TESTS )
add_subdirectory( unitTests )
Expand Down
1 change: 1 addition & 0 deletions src/coreComponents/mainInterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ add_dependencies( mainInterface generate_version )

target_include_directories( mainInterface PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS mainInterface LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
1 change: 1 addition & 0 deletions src/coreComponents/math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ blt_add_library( NAME math

target_include_directories( math INTERFACE ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS math LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
2 changes: 2 additions & 0 deletions src/coreComponents/mesh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ blt_add_library( NAME mesh

target_include_directories( mesh PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS mesh LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

if( ENABLE_VTK )
# Avoid compiling with nvcc which sometimes segfaults in debug
set_source_files_properties( generators/VTKMeshGeneratorTools.cpp PROPERTIES LANGUAGE CXX )
Expand Down
3 changes: 3 additions & 0 deletions src/coreComponents/physicsSolvers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ blt_add_library( NAME physicsSolvers
)

target_include_directories( physicsSolvers PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )

install( TARGETS physicsSolvers LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

if( externalComponentDeps )
target_include_directories( physicsSolvers PUBLIC ${CMAKE_SOURCE_DIR}/externalComponents )
endif()
Expand Down
1 change: 1 addition & 0 deletions src/coreComponents/schema/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ blt_add_library( NAME schema

target_include_directories( schema PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents)

install( TARGETS schema LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

0 comments on commit 9019f15

Please sign in to comment.