Skip to content

Commit 60a05e8

Browse files
committedDec 6, 2024·
Add new post
1 parent c7650b8 commit 60a05e8

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
 

‎_posts/2024-08-13-build-hpx.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: 2024-08-13 14:34:25
55
categories: building
66
tags: cmake
77
---
8-
In this blog post, we will provide more details on how to install HPX on your ssytem.
8+
In this blog post, we will provide more details on how to install HPX on your system.
99

1010
## Fedora Linux
1111

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: post
3+
title: "Installing HPX"
4+
date: 2024-12-06 14:34:25
5+
categories: building
6+
tags: cmake
7+
---
8+
In this blog post, we will provide more details on how to build your own HPX application using [CMake](https://cmake.org/). In the previous [blog post](https://hpxbook.stellar-group.org/building/2024/08/13/build-hpx.html) we showcased how on compile and install HPX.
9+
10+
11+
## Building a HPX application
12+
13+
We assume that we have a `CMakeLists.txt` and the `main.cpp` in the same folder. Below the main `CMakeLists.txt` is listed
14+
15+
{% highlight bash %}
16+
project(MyHPXApp LANGUAGES CXX)
17+
cmake_minimum_required(VERSION 3.18)
18+
19+
# Find the HPX package
20+
find_package(HPX REQUIRED)
21+
22+
# Compile a HPX application
23+
add_hpx_executable(app SOURCES main.cpp)
24+
{% endhighlight %}
25+
26+
27+
28+
29+
30+

0 commit comments

Comments
 (0)
Please sign in to comment.