2021-01-30 11:55:24 +00:00
|
|
|
add_executable(duckstation-nogui
|
|
|
|
main.cpp
|
2021-01-30 16:28:14 +00:00
|
|
|
nogui_host_interface.cpp
|
|
|
|
nogui_host_interface.h
|
2021-01-30 11:55:24 +00:00
|
|
|
)
|
|
|
|
|
2021-01-30 16:28:14 +00:00
|
|
|
target_link_libraries(duckstation-nogui PRIVATE core common imgui glad frontend-common scmversion vulkan-loader)
|
|
|
|
|
|
|
|
if(USE_SDL2)
|
|
|
|
target_sources(duckstation-nogui PRIVATE
|
|
|
|
imgui_impl_sdl.cpp
|
|
|
|
imgui_impl_sdl.h
|
|
|
|
sdl_host_interface.cpp
|
|
|
|
sdl_host_interface.h
|
|
|
|
sdl_key_names.h
|
|
|
|
)
|
|
|
|
target_include_directories(duckstation-nogui PRIVATE ${SDL2_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(duckstation-nogui PRIVATE ${SDL2_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(USE_DRMKMS)
|
|
|
|
find_package(LIBEVDEV REQUIRED)
|
|
|
|
|
|
|
|
target_sources(duckstation-nogui PRIVATE
|
2021-02-13 15:19:44 +00:00
|
|
|
vty_host_interface.cpp
|
|
|
|
vty_host_interface.h
|
2021-01-30 16:28:14 +00:00
|
|
|
)
|
2021-02-13 15:19:44 +00:00
|
|
|
target_compile_definitions(duckstation-nogui PRIVATE "-DWITH_VTY=1")
|
2021-01-30 16:28:14 +00:00
|
|
|
target_compile_definitions(duckstation-nogui PRIVATE "-DUSE_LIBEVDEV=1")
|
|
|
|
target_include_directories(duckstation-nogui PRIVATE ${LIBEVDEV_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(duckstation-nogui PRIVATE ${LIBEVDEV_LIBRARIES})
|
|
|
|
endif()
|
2021-01-30 11:55:24 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_sources(duckstation-nogui PRIVATE
|
|
|
|
duckstation-nogui.manifest
|
|
|
|
)
|
|
|
|
|
|
|
|
# We want a Windows subsystem application not console.
|
|
|
|
set_target_properties(duckstation-nogui PROPERTIES
|
|
|
|
WIN32_EXECUTABLE TRUE
|
|
|
|
DEBUG_POSTFIX "-debug")
|
|
|
|
endif()
|
|
|
|
|