minecraft-pi-reborn/symbols/CMakeLists.txt

17 lines
479 B
CMake
Raw Normal View History

2021-09-12 03:18:12 +00:00
project(symbols)
add_library(symbols INTERFACE)
2022-06-25 21:30:08 +00:00
target_include_directories(
symbols
INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:${MCPI_SDK_INCLUDE_DIR}/symbols>"
)
# Disable C++11 String ABI
target_compile_definitions(symbols INTERFACE -D_GLIBCXX_USE_CXX11_ABI=0)
2022-06-25 21:30:08 +00:00
# SDK
install(TARGETS symbols EXPORT sdk DESTINATION "${MCPI_SDK_LIB_DIR}")
install(DIRECTORY "include/" DESTINATION "${MCPI_SDK_INCLUDE_DIR}/symbols")