blob: ce7a2973cb415a4af035f8ed8baeba36ece7e798 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
add_library(CruPlatformGraphicsBootstrap
GraphicsBootstrap.cpp
)
add_library(CruPlatformBootstrap
Bootstrap.cpp
)
target_link_libraries(CruPlatformBootstrap PUBLIC CruPlatformGraphicsBootstrap)
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(EMSCRIPTEN)
target_link_libraries(CruPlatformGraphicsBootstrap PUBLIC CruBase)
target_link_libraries(CruPlatformBootstrap PUBLIC CruBase) # TODO: Remember to change this.
else()
target_link_libraries(CruPlatformGraphicsBootstrap PUBLIC CruPlatformGraphicsCairo)
target_link_libraries(CruPlatformBootstrap PUBLIC CruPlatformGraphicsCairo)
endif()
target_compile_definitions(CruPlatformBootstrap PRIVATE CRU_PLATFORM_BOOTSTRAP_EXPORT_API)
|