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

Add CMake build system #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ivan-pi
Copy link

@ivan-pi ivan-pi commented May 12, 2023

Here is a CMake build for the collection of Hemepure tools that require compilation. Due to issue #2, the voxelizer is currently inside an if-block that was turned off.

To test the build I used:

CXX=g++-12 cmake .. -DBUILD_VOXELIZER=OFF

Palabos is fetched automatically from the University of Geneva repository. Alternatively, it could be extracted from your tarball:

    set(palabos_SOURCE_DIR ${CMAKE_BINARY_DIR}/palabos)
    file(ARCHIVE_EXTRACT 
        INPUT ${CMAKE_SOURCE_DIR}/voxelizer/palabos.tar.gz
        DESTINATION ${palabos_SOURCE_DIR}
    )

The choice for one or the other could be done with a build flag.

Should the Python scripts also be installed? This could be achieved with install(PROGRAMS files ...) or install(DIRECTORY ...)

Also closes #1.

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.

Control reaches end of non-void function
1 participant