Summary: This adds the root of the source tree to the include path, which allow `#include <yoga/YGEnums.h>` to work. Fixes https://github.com/facebook/yoga/issues/908 Pull Request resolved: https://github.com/facebook/yoga/pull/909 Differential Revision: D16701716 Pulled By: davidaurelio fbshipit-source-id: 0fdc6479e4f3119a3e4ddbcd4b48541b282c1bbd
18 lines
491 B
CMake
18 lines
491 B
CMake
#
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# 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.4.1)
|
|
|
|
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
|
|
file(GLOB_RECURSE yogacore_SRC yoga/*.cpp)
|
|
add_library(yogacore STATIC ${yogacore_SRC})
|
|
|
|
target_include_directories(yogacore PUBLIC .)
|
|
target_link_libraries(yogacore android log)
|
|
set_target_properties(yogacore PROPERTIES CXX_STANDARD 11)
|