Fix compilation with CMake

This adds the root of the source tree to the include path, which allow `#include <yoga/YGEnums.h>` to work.

Fixes #908
This commit is contained in:
Tim
2019-06-26 16:39:50 +01:00
committed by GitHub
parent cf005df828
commit 927d62a81c

View File

@@ -12,5 +12,6 @@ set(CMAKE_VERBOSE_MAKEFILE on)
file(GLOB yogacore_SRC yoga/*.cpp) file(GLOB yogacore_SRC yoga/*.cpp)
add_library(yogacore STATIC ${yogacore_SRC}) add_library(yogacore STATIC ${yogacore_SRC})
target_include_directories(yogacore PUBLIC .)
target_link_libraries(yogacore android log) target_link_libraries(yogacore android log)
set_target_properties(yogacore PROPERTIES CXX_STANDARD 11) set_target_properties(yogacore PROPERTIES CXX_STANDARD 11)