Added openMP

This commit is contained in:
Trygve 2024-04-17 10:55:02 +02:00
parent 2ee2936cf1
commit 40d41fc065

View File

@ -1,13 +1,15 @@
project(
contour-creator
LANGUAGES CXX)
cmake_minimum_required(VERSION 3.0)
LANGUAGES CXX)
find_package(GDAL CONFIG REQUIRED)
add_executable(${PROJECT_NAME}
src/HeightMap.cpp src/CaseMap.cpp src/main.cpp
)
find_package(OpenMP)
if(OpenMP_CXX_FOUND)
target_link_libraries(${PROJECT_NAME} PUBLIC OpenMP::OpenMP_CXX)
endif()
target_link_libraries(${PROJECT_NAME} GDAL::GDAL)