You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
453 B
19 lines
453 B
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})
|