8762635176
Signed-off-by: Andrew Lee (李健秋) <ajqlee@debian.org>
19 lines
453 B
CMake
19 lines
453 B
CMake
project(use-qtxdg)
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
option(USE_QT5 "Build using Qt5. Default off" OFF)
|
|
|
|
if (USE_QT5)
|
|
find_package(QT5XDG)
|
|
else()
|
|
find_package(QTXDG)
|
|
endif()
|
|
|
|
include(${QTXDG_USE_FILE})
|
|
|
|
add_executable(use-qtxdg main.cpp)
|
|
|
|
# The QTXDG_QT_LIBRARIES variable contains the needed Qt libraries. They are
|
|
# set taking in account the choosed Qt version.
|
|
target_link_libraries(use-qtxdg ${QTXDG_QT_LIBRARIES} ${QTXDG_LIBRARIES})
|