1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00
tracy/nfd/CMakeLists.txt
Giorge Koulin 9ecda53ba3 Building profiler UI and utitily executables with CMake.
Tracy UI server app.
`csvexport` utitily executable.
`capture` utitily executable.
`update` utitily executable.
2023-03-31 09:08:48 +01:00

19 lines
563 B
CMake

add_library(
nfd STATIC
$<$<PLATFORM_ID:Windows>:nfd_win.cpp>
$<$<PLATFORM_ID:Darwin>:nfd_cocoa.m>
# To use Linux native file dialog based on freedesktop portal, you need to
# have one of the portal implementation installed, e.g.
# `xdg-desktop-portal-gtk`
$<$<PLATFORM_ID:Linux>:nfd_portal.cpp>)
set_default_compile_options(nfd)
if(UNIX AND NOT APPLE)
include(FindPkgConfig)
pkg_check_modules(dbus REQUIRED dbus-1)
target_link_libraries(nfd PRIVATE ${dbus_LIBRARIES})
target_include_directories(nfd PRIVATE ${dbus_INCLUDE_DIRS})
endif()