diff --git a/src/experimental/platform/CMakeLists.txt b/src/experimental/platform/CMakeLists.txt index 2cdc5f4e..a180b148 100644 --- a/src/experimental/platform/CMakeLists.txt +++ b/src/experimental/platform/CMakeLists.txt @@ -50,7 +50,6 @@ target_sources(${MUJOCO_PLATFORM_TARGET_NAME} interaction.h model_holder.cc model_holder.h - object_launcher_plugin.cc picture_gui.h picture_gui.cc plugin.cc @@ -68,6 +67,13 @@ target_sources(${MUJOCO_PLATFORM_TARGET_NAME} window.h ) +if(NOT WINDOWS) + target_sources(${MUJOCO_PLATFORM_TARGET_NAME} + PUBLIC + object_launcher_plugin.cc + ) +endif() + if(APPLE) set_source_files_properties(window_osx.mm PROPERTIES COMPILE_FLAGS "-x objective-c++")