mirror of
https://github.com/Vita3K/Vita3K.git
synced 2025-04-02 11:02:10 -04:00
24 lines
555 B
CMake
24 lines
555 B
CMake
add_library(
|
|
app
|
|
STATIC
|
|
include/app/functions.h
|
|
include/app/discord.h
|
|
src/app_init.cpp
|
|
src/app.cpp
|
|
src/discord.cpp
|
|
)
|
|
|
|
target_include_directories(app PUBLIC include)
|
|
target_link_libraries(app PUBLIC emuenv mem)
|
|
if(USE_DISCORD_RICH_PRESENCE)
|
|
target_link_libraries(app PUBLIC discord-rpc)
|
|
endif()
|
|
target_link_libraries(app PRIVATE audio config display gdbstub gui io ngs renderer)
|
|
if(WIN32)
|
|
target_link_libraries(app PRIVATE dwmapi)
|
|
endif()
|
|
|
|
if (LINUX)
|
|
find_package(X11 REQUIRED)
|
|
target_link_libraries(app PRIVATE ${X11_LIBRARIES})
|
|
endif()
|