mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 08:22:33 +02:00
77a81451ca
Bump Qt to 6.3 to fix video loop Remove no longer working shader and add new WIP: Shader compilation path is wrong for some reason Add Steamless version content path Remove cmake-format: sortable from CMakeLists.txt Add Widnow scale indocator icon to the bottom right Remove unused doctest and benchmark Fix tests and installer cmake logic
46 lines
1.3 KiB
CMake
46 lines
1.3 KiB
CMake
project(ScreenPlayUtil LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(
|
|
Qt6
|
|
COMPONENTS Core Quick
|
|
REQUIRED)
|
|
|
|
set(SOURCES
|
|
inc/public/ScreenPlayUtil/httpfileserver.cpp src/contenttypes.cpp src/util.cpp)
|
|
|
|
set(HEADER
|
|
|
|
inc/public/ScreenPlayUtil/AutoPropertyHelpers.h
|
|
inc/public/ScreenPlayUtil/ConstRefPropertyHelpers.h
|
|
inc/public/ScreenPlayUtil/contenttypes.h
|
|
inc/public/ScreenPlayUtil/EnumClassHelper.h
|
|
inc/public/ScreenPlayUtil/HelpersCommon.h
|
|
inc/public/ScreenPlayUtil/httpfileserver.h
|
|
inc/public/ScreenPlayUtil/ListPropertyHelper.h
|
|
inc/public/ScreenPlayUtil/projectfile.h
|
|
inc/public/ScreenPlayUtil/PropertyHelpers.h
|
|
inc/public/ScreenPlayUtil/PtrPropertyHelpers.h
|
|
inc/public/ScreenPlayUtil/SingletonHelper.h
|
|
inc/public/ScreenPlayUtil/util.h)
|
|
|
|
qt_add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADER})
|
|
|
|
find_path(CPP_HTTPLIB_INCLUDE_DIRS "httplib.h")
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CPP_HTTPLIB_INCLUDE_DIRS})
|
|
|
|
target_include_directories(
|
|
${PROJECT_NAME}
|
|
PUBLIC inc/public/
|
|
PRIVATE src/)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Core Qt6::Quick)
|
|
|
|
if(WIN32)
|
|
# Used for query windows monitor data
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC shcore.lib)
|
|
endif()
|