Skip to content

Commit

Permalink
rm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerboa-app committed Sep 8, 2024
1 parent 6cd2535 commit a368a0e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 85 deletions.
55 changes: 26 additions & 29 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ if (ANDROID)
"src/font.cpp"
"src/glyph.cpp"
"src/shader.cpp"
"src/shapeRenderer.cpp"
"src/spriteRenderer.cpp"
"src/warning.cpp"
"src/jGL/common.cpp"
Expand All @@ -102,16 +101,16 @@ endif()

add_library(jGL STATIC ${jGL_SRC})

target_include_directories(jGL PUBLIC
include
include/vendored
${OPENGL_INCLUDE_DIRS}
${Vulkan_INCLUDE_DIR}
target_include_directories(jGL PUBLIC
include
include/vendored
${OPENGL_INCLUDE_DIRS}
${Vulkan_INCLUDE_DIR}
${GLEW_INCLUDE}
include/vendored/glew/include/GL
include/vendored/freetype/include
include/vendored/freetype/include
include/vendored/VulkanSDK/Include
include/vendored/VulkanSDK/Include/shaderc
include/vendored/VulkanSDK/Include/shaderc
include/vendored/VulkanSDK/Include/vulkan
include/vendored/glfw/include
include/jLog
Expand All @@ -126,7 +125,7 @@ elseif(OSX)
add_compile_definitions(MACOS)
target_link_directories(jGL PUBLIC include/vendored/VulkanSDK/MacOS/Lib)
elseif(ANDROID)

else()
target_link_directories(jGL PUBLIC include/vendored/VulkanSDK/Linux/Lib)
endif()
Expand Down Expand Up @@ -157,35 +156,34 @@ IF (TEST_SUITE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj")
endif()

file(GLOB_RECURSE TEST_SRC
file(GLOB_RECURSE TEST_SRC
"tests/glTests/*.cpp"
"src/jGL/OpenGL/*.cpp"
"src/jGL/shader.cpp"
"src/jGL/warning.cpp"
"src/jGL/spriteRenderer.cpp"
"src/jGL/shapeRenderer.cpp"
"src/id.cpp"
"src/id.cpp"
"src/jGL/Display/*.cpp"
"src/jGL/common.cpp"
)
include_directories(include "tests/")

# GL Enabled
add_executable(glTests
add_executable(glTests
${TEST_SRC}
"src/jGL/shader.cpp"
"src/id.cpp"
"src/jGL/font.cpp"
"src/jGL/glyph.cpp"
)

target_include_directories(glTests PUBLIC
include
include/vendored
${OPENGL_INCLUDE_DIRS}
target_include_directories(glTests PUBLIC
include
include/vendored
${OPENGL_INCLUDE_DIRS}
${GLEW_INCLUDE}
include/vendored/glew/include/GL
include/vendored/freetype/include
include/vendored/freetype/include
include/vendored/glfw/include
include/vendored/VulkanSDK/Include
include/jLog
Expand All @@ -200,7 +198,7 @@ IF (TEST_SUITE)
else()
target_link_libraries(glTests stduuid glew freetype glm ${GLEW_LIBRARIES} ${OPENGL_LIBRARIES} glfw)
endif()

include(CTest)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/tests/cmake/)
include(Catch)
Expand All @@ -210,7 +208,7 @@ IF (TEST_SUITE)

add_compile_definitions(EXCEPT_ON_VALIDATION)

file(GLOB_RECURSE TEST_SRC
file(GLOB_RECURSE TEST_SRC
"tests/vulkanTests/*.cpp"
"src/jGL/Vulkan/*.cpp"
"src/jGL/Display/*.cpp"
Expand All @@ -222,18 +220,17 @@ IF (TEST_SUITE)
"src/jGL/shader.cpp"
"src/jGL/warning.cpp"
"src/jGL/spriteRenderer.cpp"
"src/jGL/shapeRenderer.cpp"
"src/id.cpp"
"src/jGL/font.cpp"
"src/jGL/glyph.cpp"
)

target_include_directories(vkTests PUBLIC
include
include/vendored
${Vulkan_INCLUDE_DIR}
target_include_directories(vkTests PUBLIC
include
include/vendored
${Vulkan_INCLUDE_DIR}
tests
include/vendored/freetype/include
include/vendored/freetype/include
include/vendored/VulkanSDK/Include
include/jLog
include/jThread
Expand All @@ -247,11 +244,11 @@ IF (TEST_SUITE)
add_compile_definitions(MACOS)
target_link_directories(vkTests PUBLIC include/vendored/VulkanSDK/MacOS/Lib)
elseif(ANDROID)

else()
target_link_directories(vkTests PUBLIC include/vendored/VulkanSDK/Linux/Lib)
endif()

if (WINDOWS)
target_link_libraries(vkTests stduuid freetype glm ${Vulkan_LIBRARIES} glfw shaderc_combined "winmm")
else()
Expand All @@ -264,5 +261,5 @@ IF (TEST_SUITE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/tests/cmake/)
include(Catch)
catch_discover_tests(vkTests)

ENDIF(TEST_SUITE)
56 changes: 0 additions & 56 deletions src/jGL/shapeRenderer.cpp

This file was deleted.

0 comments on commit a368a0e

Please sign in to comment.