2018-09-11 15:27:47 -07:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2017-04-19 12:22:08 -07:00
|
|
|
#
|
2018-02-16 18:24:55 -08:00
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
2017-04-19 12:22:08 -07:00
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.4.1)
|
|
|
|
|
2022-02-03 00:00:28 +01:00
|
|
|
project(yoga)
|
2017-04-19 12:22:08 -07:00
|
|
|
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
|
|
|
2019-11-01 11:45:19 -07:00
|
|
|
add_compile_options(
|
|
|
|
-fno-omit-frame-pointer
|
|
|
|
-fexceptions
|
|
|
|
-fvisibility=hidden
|
2019-11-01 11:45:19 -07:00
|
|
|
-ffunction-sections
|
|
|
|
-fdata-sections
|
2019-11-01 11:45:19 -07:00
|
|
|
-Wall
|
|
|
|
-std=c++11)
|
|
|
|
|
2022-02-03 00:00:28 +01:00
|
|
|
file(GLOB_RECURSE YOGA_SRC yoga/*.cpp)
|
|
|
|
add_library(${CMAKE_PROJECT_NAME} STATIC ${YOGA_SRC})
|
2017-04-19 12:22:08 -07:00
|
|
|
|
2022-02-03 00:00:28 +01:00
|
|
|
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC .)
|
|
|
|
target_link_libraries(${CMAKE_PROJECT_NAME} android log)
|
|
|
|
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES CXX_STANDARD 11)
|