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
2 changed files with 11 additions and 2 deletions
+4 -2
View File
@@ -333,8 +333,10 @@ string(TOLOWER ${PCB} FLAVOUR)
if(POLICY CMP0026)
cmake_policy(SET CMP0026 OLD) # https://cmake.org/cmake/help/v3.0/policy/CMP0026.html
endif()
get_property(current_plugin TARGET opentx-${FLAVOUR}-simulator PROPERTY LOCATION)
list(APPEND simulator_plugins "${current_plugin}")
if(SIMU_TARGET)
get_property(current_plugin TARGET opentx-${FLAVOUR}-simulator PROPERTY LOCATION)
list(APPEND simulator_plugins "${current_plugin}")
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")