mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
b52c89c933
Now we no longer trust Qt and use the data we get from the Windows api directly. Move monitor query function into util to be used later in the main app, because we also must user the correct values there.
34 lines
960 B
CMake
34 lines
960 B
CMake
project(ScreenPlayUtil LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(
|
|
Qt6
|
|
COMPONENTS Core
|
|
REQUIRED)
|
|
|
|
set(SOURCES # cmake-format: sortable
|
|
src/util.cpp src/contenttypes.cpp inc/public/ScreenPlayUtil/httpfileserver.cpp)
|
|
|
|
set(HEADER # cmake-format: sortable
|
|
inc/public/ScreenPlayUtil/util.h inc/public/ScreenPlayUtil/httpfileserver.h inc/public/ScreenPlayUtil/contenttypes.h inc/public/ScreenPlayUtil/projectfile.h)
|
|
|
|
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)
|
|
|
|
if(WIN32)
|
|
# Used for query windows monitor data
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC shcore.lib)
|
|
endif()
|