Skip to content

Commit

Permalink
Merge pull request #266 from patriciogonzalezvivo/ncurses
Browse files Browse the repository at this point in the history
Ncurses
  • Loading branch information
patriciogonzalezvivo authored May 10, 2022
2 parents 788bb17 + 81afd28 commit e3b46d0
Show file tree
Hide file tree
Showing 12 changed files with 1,079 additions and 453 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
add_subdirectory(deps)

if(MSVC)
add_definitions( -DPLATFORM_WINDOWS )
add_definitions( -DPLATFORM_WINDOWS )
endif()

if (NO_X11 OR FORCE_GBM)
Expand Down Expand Up @@ -90,6 +90,12 @@ if (EMSCRIPTEN)
target_link_libraries(glslViewer PRIVATE glfw)

else()
find_package(Curses)
if (CURSES_FOUND)
target_compile_definitions(glslViewer PUBLIC SUPPORT_NCURSES)
include_directories(${CURSES_INCLUDE_DIR})
target_link_libraries(glslViewer PRIVATE ${CURSES_LIBRARY})
endif()

target_compile_definitions(glslViewer PUBLIC
SUPPORT_MULTITHREAD_RECORDING
Expand Down
Loading

0 comments on commit e3b46d0

Please sign in to comment.