FairEmail/app/CMakeLists.txt

21 lines
588 B
CMake
Raw Normal View History

2020-10-14 18:54:28 +00:00
2020-10-14 20:26:30 +00:00
cmake_minimum_required(VERSION 3.6)
2020-10-14 18:54:28 +00:00
2020-10-14 20:26:30 +00:00
add_library(compact_enc_det SHARED
src/main/jni/charset.cc
src/main/jni/compact_enc_det/compact_enc_det/compact_enc_det.cc
src/main/jni/compact_enc_det/compact_enc_det/compact_enc_det_hint_code.cc
src/main/jni/compact_enc_det/util/encodings/encodings.cc
src/main/jni/compact_enc_det/util/languages/languages.cc
)
2020-10-14 18:54:28 +00:00
2020-10-14 20:26:30 +00:00
include_directories(src/main/jni/compact_enc_det)
2020-10-14 18:54:28 +00:00
2020-10-14 20:26:30 +00:00
find_library(log-lib log)
2020-10-14 18:54:28 +00:00
2020-10-14 20:26:30 +00:00
add_definitions(-DHAVE_MEMRCHR)
2020-10-14 18:54:28 +00:00
target_compile_options(compact_enc_det PRIVATE -Wno-c++11-narrowing)
2020-10-14 20:26:30 +00:00
target_link_libraries(compact_enc_det ${log-lib})