2022-10-04 13:59:32 -07:00
|
|
|
# Copyright (c) Meta Platforms, Inc. and 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)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2019-07-18 05:17:52 -07:00
|
|
|
file(GLOB_RECURSE yogacore_SRC yoga/*.cpp)
|
2017-04-19 12:22:08 -07:00
|
|
|
add_library(yogacore STATIC ${yogacore_SRC})
|
|
|
|
|
2019-08-07 23:49:59 -07:00
|
|
|
target_include_directories(yogacore PUBLIC .)
|
2017-04-19 12:22:08 -07:00
|
|
|
target_link_libraries(yogacore android log)
|
2019-05-14 05:25:35 -07:00
|
|
|
set_target_properties(yogacore PROPERTIES CXX_STANDARD 11)
|