Duckstation/src/duckstation-nogui/CMakeLists.txt

43 lines
1.2 KiB
CMake
Raw Normal View History

add_executable(duckstation-nogui
main.cpp
nogui_host_interface.cpp
nogui_host_interface.h
)
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()
2021-02-27 10:53:00 +00:00
if(USE_EVDEV)
target_sources(duckstation-nogui PRIVATE
vty_host_interface.cpp
vty_host_interface.h
)
target_compile_definitions(duckstation-nogui PRIVATE "-DWITH_VTY=1")
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()
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()