-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
48 lines (38 loc) · 1.48 KB
/
CMakeLists.txt
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
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.4.1)
include(ExternalProject)
# Make a copy of all CMAKE arguments for use in subproject
# Needed so that the exteral project have all the config for android (ninja, android toolchain...)
# see: https://stackoverflow.com/a/48555098/15401262
# MUST be done before call to 'project'
get_cmake_property(vars CACHE_VARIABLES)
foreach(var ${vars})
get_property(currentHelpString CACHE "${var}" PROPERTY HELPSTRING)
if("${currentHelpString}" MATCHES "No help, variable specified on the command line." OR "${currentHelpString}" STREQUAL "")
# message("${var} = [${${var}}] -- ${currentHelpString}") # uncomment to see the variables being processed
if(CMAKE_HOST_WIN32)
string(REPLACE "\\" "\\\\" outputVar ${${var}})
list(APPEND CL_ARGS "-D${var}=${outputVar}")
else()
list(APPEND CL_ARGS "-D${var}=${${var}}")
endif()
endif()
endforeach()
project(SuperBuild)
##############################################
# Include external projects/libraries
##############################################
#### libexif
include(cmake/libexif.cmake)
#### exif
include(cmake/exif.cmake)
#### Expat (required by xmpsdk in exiv2)
include(cmake/expat.cmake)
#### exiv2
include(cmake/exiv2.cmake)
#### ffmpeg
set(FFMPEG_CONFIGURE_EXTRAS --enable-jni --enable-mediacodec)
include(cmake/ffmpeg.cmake)
#### Now to build the native-lib code specific to "Exif Thumbnail Adder"
add_subdirectory(
app/src/main/cpp
)