mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
28a67cad0d
a4f5ce08b9
has a regression that caused
the .rc file to be compiled twice. We do not want the version that's
added into the .a file.
43 lines
925 B
CMake
43 lines
925 B
CMake
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
|
|
src/service.c
|
|
src/mousehook.c
|
|
src/force_compose.c
|
|
src/delay.c
|
|
)
|
|
|
|
# allow use of functions for Windows Vista or later
|
|
add_compile_definitions(WINVER=0x0600 _WIN32_WINNT=0x0600)
|
|
|
|
add_subdirectory("capture")
|
|
|
|
target_link_libraries(platform_Windows
|
|
lg_common
|
|
capture
|
|
|
|
userenv
|
|
ntdll
|
|
wtsapi32
|
|
psapi
|
|
shlwapi
|
|
powrprof
|
|
rpcrt4
|
|
)
|
|
|
|
target_include_directories(platform_Windows
|
|
PRIVATE
|
|
src
|
|
)
|
|
|
|
# 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)
|