Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor cmake build system #134

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Refactor cmake build system #134

merged 2 commits into from
Mar 6, 2024

Conversation

slabasan
Copy link
Collaborator

@slabasan slabasan commented Feb 16, 2024

  • move find_package to per-package files in cmake directory
  • add missing find_package for jansson
  • add build options for MPI, multi-threaded, and CUDA smoketests
  • use defined targets for found modules

Fixes #132

@slabasan slabasan force-pushed the refactor-cmake branch 4 times, most recently from 3c21f92 to 417f27d Compare February 17, 2024 00:05

include(cmake/Setup3rdParty.cmake)

include(GNUInstallDirs)
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revisit setting rpath

src/c/runtime/CMakeLists.txt Show resolved Hide resolved
src/c/test/CMakeLists.txt Outdated Show resolved Hide resolved
# Build Options
option(PERFFLOWASPECT_WITH_CUDA "Build CUDA smoketest" ON)
option(PERFFLOWASPECT_WITH_MPI "Build MPI smoketest" ON)
option(PERFFLOWASPECT_WITH_MULTITHREADS "Build multi-threaded smoketest" ON)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a single build option for all tests, tests will build only if it exists (e.g. CUDA for example)

@slabasan slabasan requested a review from tpatki February 22, 2024 06:35
@slabasan slabasan merged commit e9d047d into main Mar 6, 2024
8 checks passed
@slabasan slabasan deleted the refactor-cmake branch April 5, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to add CMake setup files
1 participant