1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-12 19:10:19 +03:00

Add SIMU_TARGET build option to exclude libsimulator & simu from all/install.

This commit is contained in:
Max Paperno 2018-07-09 11:53:38 -04:00
parent f60d3b80be
commit d507dbb5dd
No known key found for this signature in database
GPG key ID: F5A9DFACA08DD174
2 changed files with 11 additions and 2 deletions

View file

@ -333,8 +333,10 @@ string(TOLOWER ${PCB} FLAVOUR)
if(POLICY CMP0026) if(POLICY CMP0026)
cmake_policy(SET CMP0026 OLD) # https://cmake.org/cmake/help/v3.0/policy/CMP0026.html cmake_policy(SET CMP0026 OLD) # https://cmake.org/cmake/help/v3.0/policy/CMP0026.html
endif() endif()
get_property(current_plugin TARGET opentx-${FLAVOUR}-simulator PROPERTY LOCATION) if(SIMU_TARGET)
list(APPEND simulator_plugins "${current_plugin}") get_property(current_plugin TARGET opentx-${FLAVOUR}-simulator PROPERTY LOCATION)
list(APPEND simulator_plugins "${current_plugin}")
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

View file

@ -1,3 +1,10 @@
option(SIMU_TARGET "Configure libsimulator/simu targets (can be turned off for compiling Companion only)" ON)
if(NOT SIMU_TARGET)
message(STATUS "libsimulator/simu targets disabled")
return()
endif()
foreach(FILE ${SRC}) foreach(FILE ${SRC})
set(SIMU_SRC ${SIMU_SRC} ../../${FILE}) set(SIMU_SRC ${SIMU_SRC} ../../${FILE})
endforeach() endforeach()