Skip to content

Commit c84e308

Browse files
committed
getting started with tracing (to debug 16x16 test)
1 parent 64b6d7f commit c84e308

54 files changed

Lines changed: 1121 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
cmake_minimum_required(VERSION 3.23)
2+
include(CMakePrintHelpers)
23

34
project(liblena)
45
project(liblena_tests)
6+
project(tracing)
57

68
find_package(imgui)
79
find_package(glfw3)
@@ -87,4 +89,30 @@ target_compile_definitions(liblena_tests PRIVATE
8789
gtest_discover_tests(liblena_tests
8890
DISCOVERY_MODE PRE_TEST
8991
PROPERTIES
90-
EXCLUDE_FROM_DEFAULT_BUILD 1)
92+
EXCLUDE_FROM_DEFAULT_BUILD 1)
93+
94+
cmake_print_variables(${imgui_INCLUDE_DIRS})
95+
96+
add_executable(tracing
97+
${CMAKE_CURRENT_SOURCE_DIR}/src/Tracing.cpp
98+
${CMAKE_CURRENT_SOURCE_DIR}/src/Window.cpp
99+
${CMAKE_CURRENT_SOURCE_DIR}/src/Overlay.cpp
100+
${CMAKE_CURRENT_SOURCE_DIR}/src/ImageView.cpp
101+
102+
${imgui_INCLUDE_DIRS}/../res/bindings/imgui_impl_glfw.cpp
103+
${imgui_INCLUDE_DIRS}/../res/bindings/imgui_impl_opengl3.cpp
104+
)
105+
target_include_directories(tracing PRIVATE
106+
${CMAKE_CURRENT_SOURCE_DIR}/include/libjpeg/
107+
${imgui_INCLUDE_DIRS}/../res/bindings
108+
)
109+
110+
111+
target_link_libraries(tracing
112+
liblena
113+
114+
opengl::opengl
115+
glfw
116+
imgui::imgui
117+
glad::glad
118+
)
2.73 MB
Binary file not shown.
2.61 MB
Binary file not shown.
2.73 MB
Binary file not shown.
2.61 MB
Binary file not shown.
2.61 MB
Binary file not shown.
2.73 MB
Binary file not shown.
2.61 MB
Binary file not shown.
2.73 MB
Binary file not shown.
2.73 MB
Binary file not shown.

0 commit comments

Comments
 (0)