mirror of
https://gitlab.com/Trygve/contour-creator.git
synced 2024-11-24 16:10:18 +00:00
Added openMP
This commit is contained in:
parent
2ee2936cf1
commit
40d41fc065
@ -1,13 +1,15 @@
|
|||||||
project(
|
project(
|
||||||
contour-creator
|
contour-creator
|
||||||
LANGUAGES CXX)
|
LANGUAGES CXX)
|
||||||
cmake_minimum_required(VERSION 3.0)
|
|
||||||
|
|
||||||
find_package(GDAL CONFIG REQUIRED)
|
find_package(GDAL CONFIG REQUIRED)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME}
|
add_executable(${PROJECT_NAME}
|
||||||
src/HeightMap.cpp src/CaseMap.cpp src/main.cpp
|
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)
|
target_link_libraries(${PROJECT_NAME} GDAL::GDAL)
|
Loading…
Reference in New Issue
Block a user