aboutsummaryrefslogtreecommitdiff
path: root/src/platform/bootstrap/CMakeLists.txt
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-12 00:42:36 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-12 00:42:36 +0800
commit27f153af927c056af5cec70db5f011752e29b156 (patch)
treecdbe0a61f037cd1641f23f681d221a3206454411 /src/platform/bootstrap/CMakeLists.txt
parent7c135df9b8057e1de3ea6a73fb785d5622b519d4 (diff)
downloadcru-27f153af927c056af5cec70db5f011752e29b156.tar.gz
cru-27f153af927c056af5cec70db5f011752e29b156.tar.bz2
cru-27f153af927c056af5cec70db5f011752e29b156.zip
Organize bootstrap and graphics demos.
Diffstat (limited to 'src/platform/bootstrap/CMakeLists.txt')
-rw-r--r--src/platform/bootstrap/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/platform/bootstrap/CMakeLists.txt b/src/platform/bootstrap/CMakeLists.txt
index 4092c677..f600a75c 100644
--- a/src/platform/bootstrap/CMakeLists.txt
+++ b/src/platform/bootstrap/CMakeLists.txt
@@ -1,14 +1,24 @@
+add_library(CruPlatformGraphicsBootstrap
+ GraphicsBootstrap.cpp
+)
+
add_library(CruPlatformBootstrap
Bootstrap.cpp
)
+target_link_libraries(CruPlatformBootstrap PUBLIC CruPlatformGraphicsBootstrap)
+
if(WIN32)
+ target_link_libraries(CruPlatformGraphicsBootstrap PUBLIC CruPlatformGraphicsDirect)
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()