diff --git a/cmake/libuvncsettings/CMakeLists.txt b/cmake/libuvncsettings/CMakeLists.txt deleted file mode 100644 index c1e6b407e..000000000 --- a/cmake/libuvncsettings/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ - -set(LIBUVNCSETTINGS_SOURCES - capture.cpp - connections.cpp - filetransfer.cpp - firewall.cpp - log.cpp - misc.cpp - network.cpp - security.cpp - service.cpp -) -add_library(libuvncsettings STATIC) -target_include_directories(libuvncsettings PRIVATE "${CMAKE_SOURCE_DIR}/../DSMPlugin") -target_include_directories(libuvncsettings PRIVATE "${CMAKE_SOURCE_DIR}/../omnithread") -foreach(file ${LIBUVNCSETTINGS_SOURCES}) - target_sources(libuvncsettings PRIVATE "${CMAKE_SOURCE_DIR}/../uvnc_settings/uvnc_settings/${file}") -endforeach(file) diff --git a/cmake/vnchooks/CMakeLists.txt b/cmake/vnchooks/CMakeLists.txt new file mode 100644 index 000000000..5203ec83d --- /dev/null +++ b/cmake/vnchooks/CMakeLists.txt @@ -0,0 +1,18 @@ + +project(vnchooks LANGUAGES CXX RC) + +set(${PROJECT_NAME}_SOURCES + VNCHooks.cpp +) +add_library(${PROJECT_NAME} SHARED) +foreach(file ${${PROJECT_NAME}_SOURCES}) + target_sources(${PROJECT_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/../winvnc/vnchooks/${file}") +endforeach(file) +target_sources(${PROJECT_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/../winvnc/vnchooks/vnchooks.rc") +set_source_files_properties(${CMAKE_SOURCE_DIR}/../winvnc/vnchooks/vnchooks.rc LANGUAGE RC) +target_compile_definitions(${PROJECT_NAME} PRIVATE NDEBUG __WIN32__ WIN32 _WINDOWS _USRDLL VNCHOOKS_EXPORTS _WIN32_WINNT=0x400) +set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "") +install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_BINARY_DIR}/ultravnc) +if (MSVC) + install(FILES $ DESTINATION ${CMAKE_BINARY_DIR}/ultravnc OPTIONAL) +endif()