Aperture/CMakeLists.txt
2023-05-16 17:58:12 +03:00

50 lines
1.3 KiB
CMake

cmake_minimum_required(VERSION 3.5)
project(Aperture VERSION 0.1 LANGUAGES CXX)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets Charts Gui OpenGLWidgets OpenGL)
set(PROJECT_SOURCES
main.cpp
mainwindow.h mainwindow.cpp
mycanvas.h mycanvas.cpp
RadarExt.h
kvedit.h kvedit.cpp kvedit.ui
mainwindow.ui
)
qt_add_executable(Aperture
MANUAL_FINALIZATION
${PROJECT_SOURCES}
)
target_link_libraries(Aperture PRIVATE Qt6::Widgets)
target_link_libraries(Aperture PRIVATE Qt6::Charts)
target_link_libraries(Aperture PRIVATE Qt6::Gui)
target_link_libraries(Aperture PRIVATE Qt6::OpenGLWidgets)
target_link_libraries(Aperture PRIVATE Qt6::OpenGL)
set_target_properties(Aperture PROPERTIES
MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE
)
install(TARGETS Aperture
BUNDLE DESTINATION .
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
qt_finalize_executable(Aperture)