add_library(CruPlatformGraphicsBootstrap GraphicsBootstrap.cpp ) target_compile_definitions(CruPlatformGraphicsBootstrap PRIVATE CRU_PLATFORM_GRAPHICS_BOOTSTRAP_EXPORT_API) add_library(CruPlatformBootstrap Bootstrap.cpp ) target_link_libraries(CruPlatformBootstrap PUBLIC CruPlatformGraphicsBootstrap) target_compile_definitions(CruPlatformBootstrap PRIVATE CRU_PLATFORM_BOOTSTRAP_EXPORT_API) if(WIN32) target_link_libraries(CruPlatformGraphicsBootstrap PUBLIC CruPlatformGraphicsDirect2d) target_link_libraries(CruPlatformBootstrap PUBLIC CruPlatformGuiWin) elseif(APPLE) target_link_libraries(CruPlatformGraphicsBootstrap PUBLIC CruPlatformGraphicsQuartz) target_link_libraries(CruPlatformBootstrap PUBLIC CruPlatformGuiOsx) elseif(UNIX) target_link_libraries(CruPlatformGraphicsBootstrap PUBLIC CruPlatformGraphicsCairo) target_link_libraries(CruPlatformBootstrap PUBLIC CruPlatformGuiXcb) else() target_link_libraries(CruPlatformGraphicsBootstrap PUBLIC CruBase) target_link_libraries(CruPlatformBootstrap PUBLIC CruBase) endif()