Better cmake curl finding
This commit is contained in:
parent
b62ecd0785
commit
9aace17d6d
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ add_subdirectory(matrix-3ds-sdk)
|
|||
add_executable(matrix-3ds-client src/main.cpp)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(jansson REQUIRED IMPORTED_TARGET jansson)
|
||||
target_link_libraries(matrix-3ds-client curl PkgConfig::jansson matrix-3ds-sdk olm citro2d citro3d)
|
||||
pkg_check_modules(libcurl REQUIRED IMPORTED_TARGET libcurl)
|
||||
target_link_libraries(matrix-3ds-client PkgConfig::libcurl PkgConfig::jansson matrix-3ds-sdk olm citro2d citro3d)
|
||||
target_include_directories(matrix-3ds-client PUBLIC src "${DEVKITPRO}/portlibs/3ds/include/" ${CMAKE_CURRENT_BINARY_DIR}/include)
|
||||
|
||||
set(SMDH_AUTHOR timoreo)
|
||||
|
|
Loading…
Reference in a new issue