Skip to content

Commit

Permalink
adding openmp
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Dec 7, 2024
1 parent 605c0ff commit 919f35b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion 2024/cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ FetchContent_Declare(
GIT_TAG v1.8.3
)

FetchContent_MakeAvailable(benchmark)
FetchContent_MakeAvailable(benchmark)

find_package(OpenMP REQUIRED)
4 changes: 3 additions & 1 deletion 2024/src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ target_sources(aoc2024
file.cpp
)

target_include_directories(aoc2024 PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_include_directories(aoc2024 PUBLIC ${PROJECT_SOURCE_DIR}/include)

target_link_libraries(aoc2024 PUBLIC OpenMP::OpenMP_CXX)

0 comments on commit 919f35b

Please sign in to comment.