14 lines
399 B
CMake
14 lines
399 B
CMake
set(dir ${CMAKE_CURRENT_LIST_DIR}/src)
|
|
|
|
|
|
|
|
|
|
find_package(Qt5 REQUIRED COMPONENTS Widgets)
|
|
find_package(QMapLibre COMPONENTS Widgets REQUIRED)
|
|
|
|
|
|
file(GLOB_RECURSE srcs ${dir}/*.c ${dir}/*.h ${dir}/*.cpp ${dir}/*.hpp)
|
|
add_executable(test_maplibre ${srcs})
|
|
target_link_libraries(test_maplibre PRIVATE Qt5::Widgets QMapLibre::Widgets)
|
|
|
|
target_compile_definitions(test_maplibre PRIVATE QT_MAPLIBRE_STATIC) |