2024-05-07 09:40:33 +00:00
|
|
|
cmake_minimum_required(VERSION 3.20)
|
|
|
|
|
2024-04-06 11:32:44 +00:00
|
|
|
project(
|
2024-04-06 15:48:12 +00:00
|
|
|
contour-creator
|
2024-04-17 08:55:02 +00:00
|
|
|
LANGUAGES CXX)
|
|
|
|
|
2024-04-06 11:32:44 +00:00
|
|
|
add_executable(${PROJECT_NAME}
|
2024-04-22 14:10:02 +00:00
|
|
|
src/HeightMap.cpp src/CellMap.cpp src/main.cpp
|
2024-03-29 16:12:42 +00:00
|
|
|
)
|
2024-05-07 09:40:33 +00:00
|
|
|
|
|
|
|
# Argh is a simple argrument parser
|
|
|
|
add_subdirectory(extern/argh)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE argh)
|
|
|
|
|
|
|
|
# Gdal is used for geodata IO
|
|
|
|
find_package(GDAL CONFIG REQUIRED)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE GDAL::GDAL)
|
|
|
|
|
2024-04-17 08:55:02 +00:00
|
|
|
find_package(OpenMP)
|
|
|
|
if(OpenMP_CXX_FOUND)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC OpenMP::OpenMP_CXX)
|
2024-05-07 09:40:33 +00:00
|
|
|
endif()
|