Files
tdesktop/cmake/external/tde2e/CMakeLists.txt
allhaileris afb81b8278
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
init
2026-02-16 15:50:16 +03:00

51 lines
1.2 KiB
CMake

# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
add_library(external_tde2e INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_tde2e ALIAS external_tde2e)
if (DESKTOP_APP_USE_PACKAGED OR LINUX)
find_package(tde2e REQUIRED)
target_link_libraries(external_tde2e INTERFACE tde2e::tde2e)
return()
endif()
set(tde2e_loc ${libs_loc}/tde2e)
set(tde2e_build_loc ${tde2e_loc}/out/$<IF:$<CONFIG:Debug>,Debug,Release>)
if (WIN32)
set(tde2e_lib_prefix $<IF:$<CONFIG:Debug>,Debug,Release>/)
set(tde2e_lib_suffix .lib)
else()
set(tde2e_lib_prefix lib)
set(tde2e_lib_suffix .a)
endif()
target_include_directories(external_tde2e
INTERFACE
${tde2e_loc}/tde2e
)
set(tde2e_libs
tde2e/${tde2e_lib_prefix}tde2e
tdutils/${tde2e_lib_prefix}tdutils
)
foreach (lib ${tde2e_libs})
list(APPEND tde2e_libs_list "${tde2e_build_loc}/${lib}${tde2e_lib_suffix}")
endforeach()
target_link_libraries(external_tde2e
INTERFACE
${tde2e_libs_list}
)
if (WIN32)
target_link_libraries(external_tde2e
INTERFACE
Psapi
Normaliz
)
endif()