qi_stage_cmake(src/idl-config.cmake)
#qi_install_program forces current_build_dir as prefix

qi_stage_script(src/idl.py)
qi_stage_script(src/shlib.py)
qi_install_program(src/idl.py)
qi_install_python(src/shlib.py)

option(WITH_CODEGEN_TESTS       "Run codegen tests"       OFF)
if (WITH_CODEGEN_TESTS)
  add_subdirectory("tests")
endif()


qi_stage_cmake(src/idl-config.cmake)
#qi_install_program forces current_build_dir as prefix

qi_stage_script(src/idl.py)
qi_stage_script(src/shlib.py)
qi_install_program(src/idl.py)
qi_install_python(src/shlib.py)

if(NOT APPLE AND NOT I_AM_A_ROBOT)
  add_subdirectory("tests")
endif()

Enable codegen tests by default except on MacOS and cross.
Enable codegen tests by default except on MacOS and cross.

We need a qibuild change (@loader_path) for idl to work
 from stage dir on macos.

Change-Id: I161a9ef452412dec869866924e55cfcae9a9c20f
Reviewed-on: http://gerrit.aldebaran.lan:8080/18522
Reviewed-by: mnottale <e3ccf1b6558404e921a21fa09cebb1153b50ec36@aldebaran-robotics.com>
Tested-by: mnottale <e3ccf1b6558404e921a21fa09cebb1153b50ec36@aldebaran-robotics.com>
