2024-11-01 14:10:00 +01:00
|
|
|
cmake_minimum_required (VERSION 3.8)
|
|
|
|
project ("globalRPC")
|
|
|
|
file(GLOB_RECURSE SOURCES "src/*.cpp")
|
|
|
|
add_executable (rpc ${SOURCES})
|
|
|
|
set_property(TARGET rpc PROPERTY CXX_STANDARD 20)
|
|
|
|
add_subdirectory("vendor")
|
2024-11-01 16:55:27 +01:00
|
|
|
set(LIBRARIES discord-rpc libcurl_static mbedcrypto mbedx509 mbedtls)
|
|
|
|
if(WIN32)
|
|
|
|
list(APPEND LIBRARIES WindowsApp)
|
|
|
|
endif()
|
|
|
|
target_link_libraries(rpc PUBLIC ${LIBRARIES})
|
2024-11-01 14:10:00 +01:00
|
|
|
target_include_directories(rpc PRIVATE vendor)
|