2019-04-09 06:28:11 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(platform_Windows LANGUAGES C)
|
|
|
|
|
|
|
|
include_directories(
|
2022-05-28 18:45:13 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include
|
2019-04-09 06:28:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(platform_Windows STATIC
|
2022-05-28 18:45:13 +00:00
|
|
|
src/platform.c
|
|
|
|
src/service.c
|
|
|
|
src/mousehook.c
|
|
|
|
src/force_compose.c
|
2019-04-09 06:28:11 +00:00
|
|
|
)
|
|
|
|
|
2021-07-20 02:03:05 +00:00
|
|
|
# allow use of functions for Windows 7 or later
|
|
|
|
add_compile_definitions(WINVER=0x0601 _WIN32_WINNT=0x0601)
|
2021-01-14 23:55:36 +00:00
|
|
|
|
2019-04-09 06:28:11 +00:00
|
|
|
add_subdirectory("capture")
|
|
|
|
|
|
|
|
target_link_libraries(platform_Windows
|
2022-05-28 18:45:13 +00:00
|
|
|
lg_common
|
|
|
|
capture
|
|
|
|
|
|
|
|
userenv
|
|
|
|
wtsapi32
|
|
|
|
psapi
|
|
|
|
shlwapi
|
|
|
|
powrprof
|
|
|
|
rpcrt4
|
|
|
|
avrt
|
2019-04-09 06:28:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(platform_Windows
|
2022-05-28 18:45:13 +00:00
|
|
|
PRIVATE
|
|
|
|
src
|
2019-04-09 06:28:11 +00:00
|
|
|
)
|
2020-08-12 11:50:48 +00:00
|
|
|
|
|
|
|
# these are for the nsis installer generator
|
|
|
|
configure_file("${PROJECT_SOURCE_DIR}/installer.nsi" "${PROJECT_BINARY_DIR}/installer.nsi" COPYONLY)
|
|
|
|
configure_file("${PROJECT_TOP}/resources/icon.ico" "${PROJECT_BINARY_DIR}/icon.ico" COPYONLY)
|
|
|
|
configure_file("${PROJECT_TOP}/LICENSE" "${PROJECT_BINARY_DIR}/LICENSE.txt" COPYONLY)
|