2019-04-09 06:28:11 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(platform_Windows LANGUAGES C)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${PROJECT_SOURCE_DIR}/include
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(platform_Windows STATIC
|
|
|
|
src/platform.c
|
2020-08-11 02:22:22 +00:00
|
|
|
src/service.c
|
2019-04-10 11:07:56 +00:00
|
|
|
src/mousehook.c
|
2019-04-09 06:28:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory("capture")
|
|
|
|
|
2019-05-22 04:59:19 +00:00
|
|
|
FIND_PROGRAM(WINDRES_EXECUTABLE NAMES "x86_64-w64-mingw32-windres" "windres.exe" DOC "windres executable")
|
2019-04-10 11:07:56 +00:00
|
|
|
ADD_CUSTOM_COMMAND(TARGET platform_Windows POST_BUILD
|
|
|
|
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
|
|
|
|
COMMAND ${WINDRES_EXECUTABLE} -i resource.rc -o "${PROJECT_BINARY_DIR}/resource.o"
|
|
|
|
VERBATIM
|
|
|
|
)
|
|
|
|
|
2019-04-09 06:28:11 +00:00
|
|
|
target_link_libraries(platform_Windows
|
2019-04-10 11:07:56 +00:00
|
|
|
"${PROJECT_BINARY_DIR}/resource.o"
|
2019-04-11 01:03:30 +00:00
|
|
|
lg_common
|
2019-04-09 06:28:11 +00:00
|
|
|
capture
|
2020-08-11 02:22:22 +00:00
|
|
|
|
|
|
|
userenv
|
|
|
|
wtsapi32
|
2019-04-09 06:28:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(platform_Windows
|
|
|
|
PRIVATE
|
|
|
|
src
|
|
|
|
)
|