Warning, /graphics/digikam/core/tests/geolocation/geoiface/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # 0002 # SPDX-FileCopyrightText: 2010-2024, Gilles Caulier, <caulier dot gilles at gmail dot com> 0003 # 0004 # SPDX-License-Identifier: BSD-3-Clause 0005 # 0006 0007 APPLY_COMMON_POLICIES() 0008 0009 include_directories( 0010 $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES> 0011 $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Test,INTERFACE_INCLUDE_DIRECTORIES> 0012 $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Gui,INTERFACE_INCLUDE_DIRECTORIES> 0013 ) 0014 0015 add_subdirectory(calibrator) 0016 add_subdirectory(demo) 0017 0018 # -- test the primitive datatypes and helper functions ----------------------------------------- 0019 0020 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/primitives_utest.cpp 0021 0022 NAME_PREFIX 0023 0024 "digikam-" 0025 0026 LINK_LIBRARIES 0027 0028 digikamcore 0029 0030 ${COMMON_TEST_LINK} 0031 ) 0032 0033 # -- test the GeoCoordinates class -------------------------------------------------------------- 0034 0035 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/geocoordinates_utest.cpp 0036 0037 NAME_PREFIX 0038 0039 "digikam-" 0040 0041 LINK_LIBRARIES 0042 0043 digikamcore 0044 0045 ${COMMON_TEST_LINK} 0046 ) 0047 0048 # -- test the TileIndex class -------------------------------------------------------------------- 0049 0050 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/tileindex_utest.cpp 0051 0052 NAME_PREFIX 0053 0054 "digikam-" 0055 0056 LINK_LIBRARIES 0057 0058 digikamcore 0059 0060 ${COMMON_TEST_LINK} 0061 ) 0062 0063 # -- test the LookupAltitudeGeonames class ------------------------------------------------------- 0064 0065 # do not add this as a test because it only works if there is an internet connection 0066 # 0067 #ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/lookup_altitude_geonames_utest.cpp 0068 # 0069 # NAME_PREFIX 0070 # 0071 # "digikam-" 0072 # 0073 # LINK_LIBRARIES 0074 # 0075 # digikamcore 0076 # 0077 # ${COMMON_TEST_LINK} 0078 #) 0079 0080 # -- test the marker model ------------------------------------------------------------------------ 0081 0082 if(NOT WIN32) 0083 0084 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/itemmarkertiler_utest.cpp 0085 0086 NAME_PREFIX 0087 0088 "digikam-" 0089 0090 LINK_LIBRARIES 0091 0092 digikamcore 0093 0094 ${COMMON_TEST_LINK} 0095 ) 0096 0097 endif() 0098 0099 # -- test the track management classes ------------------------------------------------------------- 0100 0101 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/tracks_utest.cpp 0102 0103 NAME_PREFIX 0104 0105 "digikam-" 0106 0107 LINK_LIBRARIES 0108 0109 digikamcore 0110 0111 ${COMMON_TEST_LINK} 0112 ) 0113 0114 # -- track loading application for timing tests ---------------------------------------------------- 0115 0116 set(loadtrack_cli_sources ${CMAKE_CURRENT_SOURCE_DIR}/loadtrack_cli.cpp) 0117 0118 add_executable(loadtrack_cli ${loadtrack_cli_sources}) 0119 0120 target_link_libraries(loadtrack_cli 0121 0122 digikamcore 0123 0124 ${COMMON_TEST_LINK} 0125 )