4 # This file is covered by the LICENSE file in the root of this project.
6 cmake_minimum_required(VERSION 3.5)
8 project(bigintmandel VERSION 0.1 LANGUAGES CXX)
14 set(CMAKE_CXX_STANDARD 11)
15 set(CMAKE_CXX_STANDARD_REQUIRED ON)
17 find_package(QT NAMES Qt6 REQUIRED COMPONENTS Widgets Concurrent)
18 find_package(Qt6 REQUIRED COMPONENTS Widgets Concurrent)
22 bigintmandelwidget.cpp
36 qt_add_executable(bigintmandel
41 # Define target properties for Android with Qt 6 as:
42 #set_property(TARGET bigintmandel APPEND PROPERTY
43 # QT_ANDROID_PACKAGE_SOURCE_DIR
44 # ${CMAKE_CURRENT_SOURCE_DIR}/android)
45 # For more information,
46 # see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation
48 target_link_libraries(
56 # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
57 # If you are developing for iOS or macOS you should consider setting an
58 # explicit, fixed bundle identifier manually though.
59 if(${QT_VERSION} VERSION_LESS 6.1.0)
60 set(BUNDLE_ID_OPTION MACOSX_BUNDLE_GUI_IDENTIFIER com.example.bigintmandel)
62 set_target_properties(bigintmandel PROPERTIES
64 MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
65 MACOSX_BUNDLE_SHORT_VERSION_STRING
66 ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
71 include(GNUInstallDirs)
72 install(TARGETS bigintmandel
74 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
75 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
78 qt_finalize_executable(bigintmandel)