diff --git a/2024/cmake/dependencies.cmake b/2024/cmake/dependencies.cmake index aeceb18..88ec910 100644 --- a/2024/cmake/dependencies.cmake +++ b/2024/cmake/dependencies.cmake @@ -9,4 +9,6 @@ FetchContent_Declare( GIT_TAG v1.8.3 ) -FetchContent_MakeAvailable(benchmark) \ No newline at end of file +FetchContent_MakeAvailable(benchmark) + +find_package(OpenMP REQUIRED) \ No newline at end of file diff --git a/2024/src/lib/CMakeLists.txt b/2024/src/lib/CMakeLists.txt index 4cd945f..7c27a3f 100644 --- a/2024/src/lib/CMakeLists.txt +++ b/2024/src/lib/CMakeLists.txt @@ -5,4 +5,6 @@ target_sources(aoc2024 file.cpp ) -target_include_directories(aoc2024 PUBLIC ${PROJECT_SOURCE_DIR}/include) \ No newline at end of file +target_include_directories(aoc2024 PUBLIC ${PROJECT_SOURCE_DIR}/include) + +target_link_libraries(aoc2024 PUBLIC OpenMP::OpenMP_CXX)