-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (27 loc) · 771 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
36 lines (27 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.20)
project(mlx-cog-gen CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(GDAL REQUIRED)
find_package(MLX REQUIRED)
# Shared library of MLX overview logic, used by mlx_translate and tests
add_library(mlx_overviews STATIC
src/mlx_overviews.cpp
)
target_include_directories(mlx_overviews PUBLIC
${GDAL_INCLUDE_DIRS}
src
)
target_link_libraries(mlx_overviews PUBLIC
${GDAL_LIBRARIES}
mlx
)
# mlx_translate: COG generator with MLX-accelerated overview generation
add_executable(mlx_translate
src/mlx_translate.cpp
)
target_include_directories(mlx_translate PRIVATE src)
target_link_libraries(mlx_translate PRIVATE mlx_overviews)
# Tests
enable_testing()
add_subdirectory(tests)