2022-07-05 15:20:23 +03:00
cmake_minimum_required ( VERSION 3.14 )
project ( new_alterator LANGUAGES CXX )
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 )
find_package ( QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core )
2022-07-08 18:54:15 +03:00
find_package ( Qt ${ QT_VERSION_MAJOR } REQUIRED COMPONENTS Core Quick QuickWidgets DBus #[[QmlTypes]])
2022-07-07 19:15:28 +03:00
project ( new_alterator
2022-07-08 18:54:15 +03:00
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 " )
2022-07-07 19:15:28 +03:00
set ( SOURCES
$ { C M A K E _ S O U R C E _ D I R } / s r c / a l t e r a t o r _ l o a d e r . c p p
$ { 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
2022-07-11 19:12:12 +03:00
$ { C M A K E _ S O U R C E _ D I R } / s r c / m a i n . c p p
$ { C M A K E _ S O U R C E _ D I R } / s r c / d b u s _ c o n n e c t o r . c p p )
2022-07-07 19:15:28 +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 / a l t e r a t o r _ l o a d e r . h
2022-07-11 19:12:12 +03:00
$ { 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 } / i n c l u d e / d b u s _ c o n n e c t o r . h )
2022-07-07 19:15:28 +03:00
set ( RESOURCES
2022-07-08 18:54:15 +03:00
$ { 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-07 19:15:28 +03:00
set ( SHARED
2022-07-08 18:54:15 +03:00
$ { 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 )
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
$ { H E A D E R S }
$ { S O U R C E S }
)
2022-07-07 19:15:28 +03:00
#add_library(new_alterator_lib SHARED ${SHARED})
#target_link_libraries(new_alterator new_alterator_lib)
target_link_libraries ( new_alterator
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
Q t $ { Q T _ V E R S I O N _ M A J O R } : : D B u s
# Qt${QT_VERSION_MAJOR}::QmlTypes
)