2021-01-28 15:19:46 +01:00
|
|
|
project(ScreenPlayUtil LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(
|
2021-06-20 18:50:54 +02:00
|
|
|
QT NAMES Qt6 Qt5
|
|
|
|
COMPONENTS Core
|
|
|
|
REQUIRED)
|
|
|
|
find_package(
|
|
|
|
Qt${QT_VERSION_MAJOR}
|
|
|
|
COMPONENTS Core
|
2021-01-28 15:19:46 +01:00
|
|
|
REQUIRED)
|
|
|
|
|
2021-06-20 18:50:54 +02:00
|
|
|
set(SOURCES src/util.cpp src/contenttypes.cpp)
|
2021-01-28 15:19:46 +01:00
|
|
|
|
2021-06-20 18:50:54 +02:00
|
|
|
set(HEADER inc/public/ScreenPlayUtil/util.h inc/public/ScreenPlayUtil/contenttypes.h inc/public/ScreenPlayUtil/projectfile.h)
|
2021-01-28 15:19:46 +01:00
|
|
|
|
2021-06-20 18:50:54 +02:00
|
|
|
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADER})
|
2021-07-16 16:44:28 +02:00
|
|
|
target_include_directories(
|
|
|
|
${PROJECT_NAME}
|
|
|
|
PUBLIC inc/public/
|
|
|
|
PRIVATE src/)
|
2021-07-11 08:27:13 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Core)
|