changes
This commit is contained in:
@@ -15,12 +15,14 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(SDL2 REQUIRED IMPORTED_TARGET sdl2)
|
||||
pkg_check_modules(LIBVNCCLIENT REQUIRED IMPORTED_TARGET libvncclient)
|
||||
include(CTest)
|
||||
|
||||
add_executable(wayviewer
|
||||
src/input.cpp
|
||||
src/main.cpp
|
||||
src/options.cpp
|
||||
src/sdl_app.cpp
|
||||
src/ui_prompt.cpp
|
||||
src/viewer_state.cpp
|
||||
src/vnc_client.cpp
|
||||
)
|
||||
@@ -44,3 +46,17 @@ configure_file(
|
||||
|
||||
install(TARGETS wayviewer RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wayviewer.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
|
||||
|
||||
if(BUILD_TESTING)
|
||||
add_executable(wayviewer_input_tests
|
||||
tests/input_tests.cpp
|
||||
src/input.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(wayviewer_input_tests PRIVATE
|
||||
PkgConfig::SDL2
|
||||
PkgConfig::LIBVNCCLIENT
|
||||
)
|
||||
|
||||
add_test(NAME input_mapping COMMAND wayviewer_input_tests)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user