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)
|
2021-09-10 11:09:38 +02:00
|
|
|
|
2021-01-28 15:19:46 +01:00
|
|
|
find_package(
|
2021-09-10 11:09:38 +02:00
|
|
|
Qt6
|
2021-06-20 18:50:54 +02:00
|
|
|
COMPONENTS Core
|
2021-01-28 15:19:46 +01:00
|
|
|
REQUIRED)
|
|
|
|
|
2021-10-15 15:06:05 +02:00
|
|
|
set(SOURCES # cmake-format: sortable
|
2021-10-23 18:34:25 +02:00
|
|
|
src/util.cpp src/contenttypes.cpp inc/public/ScreenPlayUtil/httpfileserver.cpp)
|
2021-01-28 15:19:46 +01:00
|
|
|
|
2021-12-31 13:32:37 +01:00
|
|
|
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)
|
2021-01-28 15:19:46 +01:00
|
|
|
|
2021-06-20 18:50:54 +02:00
|
|
|
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADER})
|
2021-10-15 15:06:05 +02:00
|
|
|
|
2021-10-23 18:34:25 +02:00
|
|
|
find_path(CPP_HTTPLIB_INCLUDE_DIRS "httplib.h")
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CPP_HTTPLIB_INCLUDE_DIRS})
|
|
|
|
|
2021-06-20 18:50:54 +02:00
|
|
|
target_include_directories(
|
|
|
|
${PROJECT_NAME}
|
|
|
|
PUBLIC inc/public/
|
|
|
|
PRIVATE src/)
|
2021-10-15 15:06:05 +02:00
|
|
|
|
2021-09-10 11:09:38 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Core)
|
2021-11-13 14:12:19 +01:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
# Used for query windows monitor data
|
|
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC shcore.lib)
|
|
|
|
endif()
|