mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 19:59:05 +08:00
eb33d2f758
* [xplane-sdk] New port * [xplane-sdk] This build should work. * [xplane-sdk] updated versions. i forgor. * [xplane-sdk] Build fixed for Mac. * [x-plane-sdk] xplane-sdk renamed to x-plane-sdk. xplane-sdk has not yet been published, so this is okay. * [x-plane-sdk] Renaming fixes. * [x-plane-sdk] Clarify license. The license seems to be a weird mix of the MIT, BSD 1-clause, and BSD 3-clause licenses. I can't work it out. It's permissive, but it's not any one license. * [x-plane-sdk] Switch to vcpkg_install_copyright. * [x-plane-sdk] Fixup config. * Rename x-plane-sdk to x-plane. Includes also moved to include root. Signed-off-by: Julia DeMille <me@jdemille.com> * Forgot to format and update versions. Signed-off-by: Julia DeMille <me@jdemille.com> --------- Signed-off-by: Julia DeMille <me@jdemille.com>
63 lines
2.4 KiB
CMake
63 lines
2.4 KiB
CMake
@PACKAGE_INIT@
|
|
|
|
get_filename_component(ROOT "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
|
get_filename_component(ROOT "${ROOT}" PATH)
|
|
|
|
if(NOT TARGET unofficial::x-plane::xplm)
|
|
if(WIN32 OR APPLE)
|
|
add_library(unofficial::x-plane::xplm SHARED IMPORTED)
|
|
if(WIN32)
|
|
set_target_properties(
|
|
unofficial::x-plane::xplm
|
|
PROPERTIES IMPORTED_IMPLIB "${ROOT}/lib/x-plane/XPLM_64.lib")
|
|
set_target_properties(
|
|
unofficial::x-plane::xplm PROPERTIES INTERFACE_COMPILE_DEFINITIONS
|
|
"-DIBM=1;-DAPL=0;-DLIN=0")
|
|
else()
|
|
set_target_properties(
|
|
unofficial::x-plane::xplm
|
|
PROPERTIES IMPORTED_LOCATION "${ROOT}/lib/x-plane/XPLM.framework/XPLM")
|
|
set_target_properties(
|
|
unofficial::x-plane::xplm PROPERTIES INTERFACE_COMPILE_DEFINITIONS
|
|
"-DIBM=0;-DAPL=1;-DLIN=0")
|
|
endif()
|
|
else()
|
|
add_library(unofficial::x-plane::xplm INTERFACE IMPORTED)
|
|
set_target_properties(
|
|
unofficial::x-plane::xplm PROPERTIES INTERFACE_COMPILE_DEFINITIONS
|
|
"-DIBM=0;-DAPL=0;-DLIN=1")
|
|
endif()
|
|
set_target_properties(
|
|
unofficial::x-plane::xplm PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
|
|
"${ROOT}/include")
|
|
endif()
|
|
|
|
if(NOT TARGET unofficial::x-plane::xpwidgets)
|
|
if(WIN32 OR APPLE)
|
|
add_library(unofficial::x-plane::xpwidgets SHARED IMPORTED)
|
|
if(WIN32)
|
|
set_target_properties(
|
|
unofficial::x-plane::xpwidgets
|
|
PROPERTIES IMPORTED_IMPLIB "${ROOT}/lib/x-plane/XPWidgets_64.lib")
|
|
else()
|
|
set_target_properties(
|
|
unofficial::x-plane::xpwidgets
|
|
PROPERTIES IMPORTED_LOCATION
|
|
"${ROOT}/lib/x-plane/XPWidgets.framework/XPWidgets")
|
|
endif()
|
|
else()
|
|
add_library(unofficial::x-plane::xpwidgets INTERFACE IMPORTED)
|
|
endif()
|
|
set_target_properties(
|
|
unofficial::x-plane::xpwidgets PROPERTIES INTERFACE_LINK_LIBRARIES
|
|
"unofficial::x-plane::xplm")
|
|
set_target_properties(
|
|
unofficial::x-plane::xpwidgets
|
|
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
|
|
"${ROOT}/include")
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-x-plane-targets.cmake")
|
|
|
|
check_required_components(unofficial-x-plane)
|