2022-07-05 15:20:23 +03:00
cmake_minimum_required ( VERSION 3.14 )
2022-07-12 18:55:20 +03:00
project ( new_alterator
L A N G U A G E S C X X
V E R S I O N 0 . 1
D E S C R I P T I O N " F r o n t e n d o f n e w a l t e r a t o r " )
set ( CMAKE_DEBUG_POSTFIX d )
2022-07-07 19:15:28 +03:00
set ( CMAKE_INCLUDE_CURRENT_DIR ON )
set ( CMAKE_AUTOUIC ON )
set ( CMAKE_AUTOMOC ON )
set ( CMAKE_AUTORCC ON )
set ( CMAKE_CXX_STANDARD 17 )
set ( CMAKE_CXX_STANDARD_REQUIRED ON )
2022-07-13 18:16:48 +03:00
set ( CMAKE_INSTALL_PREFIX
" / h o m e / S M B . B A S E A L T . R U / k o z y r e v i d / w o r k / n e w _ a l t e r a t o r / i n s t a l l " )
set ( @build_type@ ${ CMAKE_BUILD_TYPE } )
2022-07-07 19:15:28 +03:00
find_package ( QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core )
2022-07-13 18:16:48 +03:00
find_package ( Qt ${ QT_VERSION_MAJOR } REQUIRED COMPONENTS Core Quick QuickWidgets DBus )
2022-07-07 19:15:28 +03:00
2022-07-13 18:16:48 +03:00
set ( SOURCES
$ { C M A K E _ S O U R C E _ D I R } / s r c / d i s t _ i n f o . c p p
$ { C M A K E _ S O U R C E _ D I R } / s r c / m a i n . c p p )
2022-07-12 18:55:20 +03:00
2022-07-13 18:16:48 +03:00
set ( HEADERS
$ { C M A K E _ S O U R C E _ D I R } / i n c l u d e / d i s t _ i n f o . h )
2022-07-12 18:55:20 +03:00
2022-07-13 18:16:48 +03:00
set ( RESOURCES
$ { C M A K E _ S O U R C E _ D I R } / r e s o u r c e s / w i k i _ l o g o . s v g
$ { C M A K E _ S O U R C E _ D I R } / r e s o u r c e s / D i s t I n f o . q m l
$ { C M A K E _ S O U R C E _ D I R } / r e s o u r c e s / T e s t . q m l
$ { C M A K E _ S O U R C E _ D I R } / r e s o u r c e s / r e s o u r c e s . q r c )
2022-07-12 18:55:20 +03:00
2022-07-13 18:16:48 +03:00
set ( SHARED
$ { C M A K E _ S O U R C E _ D I R } / s h a r e d / A l t e r a t o r W i n d o w . q m l
$ { C M A K E _ S O U R C E _ D I R } / s h a r e d / A l t e r a t o r T o o l B a r . q m l
$ { C M A K E _ S O U R C E _ D I R } / s h a r e d / T e x t W i t h H e a d e r . q m l
$ { C M A K E _ S O U R C E _ D I R } / s h a r e d / s h a r e d . q r c
$ { C M A K E _ S O U R C E _ D I R } / s h a r e d / q m l d i r )
2022-07-12 18:55:20 +03:00
2022-07-13 18:16:48 +03:00
add_executable ( new_alterator
$ { C M A K E _ S O U R C E _ D I R } / s h a r e d / s h a r e d . q r c
$ { C M A K E _ S O U R C E _ D I R } / r e s o u r c e s / r e s o u r c e s . q r c
$ { C M A K E _ S O U R C E _ D I R } / s r c / d i s t _ i n f o . c p p
$ { C M A K E _ S O U R C E _ D I R } / i n c l u d e / d i s t _ i n f o . h
$ { C M A K E _ S O U R C E _ D I R } / s r c / m a i n . c p p )
2022-07-12 18:55:20 +03:00
2022-07-13 18:16:48 +03:00
configure_file ( alterator_loader_config.h.in alterator/alterator_loader_config.h )
2022-07-12 18:55:20 +03:00
2022-07-13 18:16:48 +03:00
add_subdirectory ( alterator )
2022-07-12 18:55:20 +03:00
set_target_properties ( new_alterator PROPERTIES DEBUG_POSTFIX ${ CMAKE_DEBUG_POSTFIX } )
2022-07-07 19:15:28 +03:00
2022-07-13 18:16:48 +03:00
target_link_libraries ( new_alterator PUBLIC alteratorlib )
target_link_libraries ( new_alterator INTERFACE
2022-07-08 18:54:15 +03:00
Q t $ { Q T _ V E R S I O N _ M A J O R } : : C o r e
Q t $ { Q T _ V E R S I O N _ M A J O R } : : Q u i c k
Q t $ { Q T _ V E R S I O N _ M A J O R } : : Q u i c k W i d g e t s
2022-07-12 18:55:20 +03:00
Q t $ { Q T _ V E R S I O N _ M A J O R } : : D B u s )
2022-07-13 18:16:48 +03:00
install ( TARGETS new_alterator DESTINATION bin )