summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@tehran.lain.pl>2020-01-13 15:02:44 +0100
committerGitHub <noreply@github.com>2020-01-13 15:02:44 +0100
commit50f23dc21fce9d382893ad77dc29fd343ee2134c (patch)
tree663c0c38fc91b3d021ad8d38ba8ea5b7c0e5b647 /x-plane-plugin
parentfb994308266093382fffecb8a3fd2645ab811117 (diff)
parent2d709bb4755305342b79a1574c90b2be348b4c4d (diff)
Merge pull request #1006 from rvt/osx-build-fix
OSX Build fixes
Diffstat (limited to 'x-plane-plugin')
-rw-r--r--x-plane-plugin/CMakeLists.txt25
1 files changed, 18 insertions, 7 deletions
diff --git a/x-plane-plugin/CMakeLists.txt b/x-plane-plugin/CMakeLists.txt
index 1d686d98..54bcaf34 100644
--- a/x-plane-plugin/CMakeLists.txt
+++ b/x-plane-plugin/CMakeLists.txt
@@ -2,19 +2,30 @@ if(LINUX OR APPLE)
set(SDK_XPLANE "" CACHE PATH "Path to the X-Plane SDK")
if(SDK_XPLANE)
- otr_module(xplane-plugin NO-QT)
+ if (APPLE)
+ otr_module(xplane-plugin NO-QT NO-INSTALL)
+ else()
+ otr_module(xplane-plugin NO-QT)
+ endif()
# probably librt already included
- #install(FILES ${opentrack-xplane-plugin-c} DESTINATION "${opentrack-doc-src-pfx}/opentrack-xplane-plugin")
- target_include_directories(opentrack-xplane-plugin SYSTEM PUBLIC ${SDK_XPLANE}/CHeaders ${SDK_XPLANE}/CHeaders/XPLM)
+ #install(FILES ${opentrack-xplane-plugin-c} DESTINATION "opentrack-hier-pfx")
+ target_include_directories(opentrack-xplane-plugin SYSTEM PUBLIC ${SDK_XPLANE}/CHeaders/XPLM)
if(APPLE)
target_compile_options(${self} PRIVATE
-iframework "${SDK_XPLANE}/Libraries/Mac/"
- -DAPL -DXPLM200 -DXPLM210
- -framework XPLM -framework XPWidgets)
- target_link_options(${self}
+ -DAPL -DXPLM200 -DXPLM210
+ -framework XPLM)
+ target_link_options(${self} PRIVATE
"-F${SDK_XPLANE}/Libraries/Mac/"
- -framework XPLM -framework XPWidgets)
+ -framework XPLM)
+
+ install(TARGETS "${self}"
+ RUNTIME DESTINATION ${opentrack-hier-bin}/xplane
+ BUNDLE DESTINATION ${opentrack-hier-bin}/xplane
+ LIBRARY DESTINATION ${opentrack-hier-bin}/xplane
+ PERMISSIONS ${opentrack-perms-exec})
+
elseif(CMAKE_COMPILER_IS_GNUCXX)
target_compile_options(${self} PRIVATE -DLIN -DXPLM200 -DXPLM210)
target_link_options(${self} PRIVATE -rdynamic -nodefaultlibs)