summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-01-06 15:53:53 -0500
committerrealtradam <[email protected]>2023-01-06 15:53:53 -0500
commit729a6b3b9cb0315106c87079a0eba9b294f02159 (patch)
tree4d7062c70b13349685bd7dc39295af6b1dc64a25 /CMakeLists.txt
parentb1f855a82b40f1caeaf4d672638f2cfc933c8040 (diff)
downloadRodeoKit-729a6b3b9cb0315106c87079a0eba9b294f02159.tar.gz
RodeoKit-729a6b3b9cb0315106c87079a0eba9b294f02159.zip
render batching for coloured rectangles
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f0f046d..ec7310d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,7 @@ project(RodeoEngine)
file(GLOB SOURCES
"src/rodeo.c"
+ "src/rodeo_math.c"
)
#add_library(lib src/lib.c)
@@ -27,6 +28,9 @@ if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
endif()
add_subdirectory(external/SDL)
+add_subdirectory(external/cglm EXCLUDE_FROM_ALL)
+
+#option(CGLM_FORCE_LEFT_HANDED "" ON)
ExternalProject_Add(project_bgfx
#BUILD_IN_SOURCE true # this just doesn't work
@@ -45,6 +49,7 @@ target_include_directories(${PROJECT_NAME}
PUBLIC external/SDL/include
PUBLIC external/bgfx/include
PUBLIC external/bx/include
+ PUBLIC external/cglm/include
PUBLIC include
)
@@ -53,11 +58,11 @@ target_link_directories(${PROJECT_NAME}
PRIVATE external/bgfx
)
+
ExternalProject_Get_Property(project_bgfx BINARY_DIR)
#message("++" ${BINARY_DIR})
-target_link_libraries(${PROJECT_NAME}
+target_link_libraries(${PROJECT_NAME} PRIVATE
SDL2::SDL2 # dynamic lib
- #SDL3::SDL3 # dynamic lib
- #SDL3::SDL3-static # static lib
- ${BINARY_DIR}/.build/linux64_gcc/bin/libbgfx-shared-libRelease.so
+ cglm
+ ${BINARY_DIR}/.build/linux64_gcc/bin/libbgfx-shared-libDebug.so
)