Files
flipper/libs/fbjni/CMakeLists.txt
Pritesh Nandgaonkar 72045da4be Use the latest fbjni
2018-06-15 15:55:10 +01:00

42 lines
937 B
CMake

#
# Copyright (c) 2014-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
cmake_minimum_required(VERSION 3.6.0)
set(CMAKE_VERBOSE_MAKEFILE on)
add_compile_options(
-fno-omit-frame-pointer
-fexceptions
-Wall
-std=c++11
-DDISABLE_CPUCAP
-DDISABLE_XPLAT)
set(FBJNI_CXX ${PROJECT_SOURCE_DIR}/cxx)
list(APPEND FBJNI_HDRS ${FBJNI_CXX})
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/fbjni/)
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/fbjni/detail)
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/lyra)
include_directories(${FBJNI_HDRS})
message(STATUS "FBJNI_HDRS =>" ${FBJNI_HDRS})
file(GLOB FBJNI_SRC
${FBJNI_CXX}/fbjni/*.cpp
${FBJNI_CXX}/fbjni/detail/*.cpp
${FBJNI_CXX}/lyra/*.cpp)
add_library(fb SHARED
${FBJNI_SRC})
#target_include_directories(fb PRIVATE
# include ${libjnihack_DIR})
target_link_libraries(fb log)