Compare commits
3 Commits
d7b765fba5
...
7439747876
| Author | SHA1 | Date | |
|---|---|---|---|
| 7439747876 | |||
| 27edf28f42 | |||
| ca5aab1344 |
@ -1,4 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
cmake_policy(SET CMP0068 NEW)
|
||||
|
||||
project(GermanAirlinesVA_GAConnector)
|
||||
|
||||
@ -6,6 +7,7 @@ set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR TRUE)
|
||||
set(PLUGIN_NAME GAConnector)
|
||||
|
||||
option(DEBUG "Debug symbols" OFF)
|
||||
|
||||
@ -55,13 +55,12 @@ endif()
|
||||
|
||||
if(APPLE)
|
||||
message("Building for MacOSX Universal into ${PROJECT_BINARY_DIR}/${PLUGIN_NAME}/${BIT}")
|
||||
|
||||
|
||||
set_target_properties(germanairlinesva_xplugin PROPERTIES
|
||||
NO_SONAME 1
|
||||
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Plugin/${PLUGIN_NAME}
|
||||
OUTPUT_NAME mac
|
||||
)
|
||||
|
||||
|
||||
target_compile_definitions(germanairlinesva_xplugin PUBLIC
|
||||
APL
|
||||
)
|
||||
@ -79,13 +78,13 @@ if(APPLE)
|
||||
)
|
||||
elseif(UNIX)
|
||||
message("Building for Linux ${BIT} into ${PROJECT_BINARY_DIR}/Plugin/${PLUGIN_NAME}/${BIT}")
|
||||
|
||||
|
||||
set_target_properties(germanairlinesva_xplugin PROPERTIES
|
||||
NO_SONAME 1
|
||||
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Plugin/${PLUGIN_NAME}/${BIT}
|
||||
OUTPUT_NAME lin
|
||||
)
|
||||
|
||||
|
||||
target_compile_definitions(germanairlinesva_xplugin PUBLIC
|
||||
LIN
|
||||
)
|
||||
@ -106,12 +105,12 @@ elseif(UNIX)
|
||||
)
|
||||
elseif(WIN32)
|
||||
message("Building for Windows ${BIT} into ${PROJECT_BINARY_DIR}/Plugin/${PLUGIN_NAME}/${BIT}")
|
||||
|
||||
|
||||
set_target_properties(germanairlinesva_xplugin PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Plugin/${PLUGIN_NAME}/${BIT}
|
||||
OUTPUT_NAME win
|
||||
)
|
||||
|
||||
|
||||
target_compile_definitions(germanairlinesva_xplugin PUBLIC
|
||||
IBM
|
||||
)
|
||||
|
||||
@ -277,4 +277,4 @@ void toLog(const std::string &message)
|
||||
std::stringstream msg;
|
||||
msg << "German Airlines VA: " << message << std::endl;
|
||||
XPLMDebugString(msg.str().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user