mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2025-05-18 14:34:12 +02:00
build(plugin): enable XPLM APIs from previous versions
This commit is contained in:
parent
456c7ede88
commit
8341e86766
@ -5,7 +5,7 @@ project(XPL-Checklist-Connector CXX)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
# Set compile options for XPLM
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXPLM401=1 -fvisibility=hidden -shared -rdynamic -nodefaultlibs -undefined_warning -lGL -lGLU")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXPLM200=1 -DXPLM210=1 -DXPLM300=1 -DXPLM301=1 -DXPLM302=1 -DXPLM303=1 -DXPLM401=1 -fvisibility=hidden -shared -rdynamic -nodefaultlibs -undefined_warning -lGL -lGLU")
|
||||
|
||||
# Set output directory in X-Plane plugin structure
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/lin_x64)
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <XPLMProcessing.h>
|
||||
#include "XPLMDisplay.h"
|
||||
#include "XPLMGraphics.h"
|
||||
|
||||
#if IBM
|
||||
#include <windows.h>
|
||||
@ -27,7 +28,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef XPLM401
|
||||
#error This is made to be compiled against the XPLM400 SDK
|
||||
#error This is made to be compiled against the XPLM401 SDK
|
||||
#endif
|
||||
|
||||
PLUGIN_API int XPluginStart(char * outName, char * outSignature, char * outDescription) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user