set(MODULE_NAME "teaclient_ppt") if (MSVC) set(SOURCE_FILES ${SOURCE_FILES} src/Win32KeyboardHook.cpp) add_definitions(-DUSING_UV_SHARED) else() add_definitions(-DHAVE_X11) set(SOURCE_FILES ${SOURCE_FILES} src/X11KeyboardHook.cpp ../updater/main.cpp ../updater/config.cpp ../updater/config.h) endif() add_nodejs_module(${MODULE_NAME} binding.cc ${SOURCE_FILES}) add_executable(Hook-Test ${SOURCE_FILES} test/HookTest.cpp) if(NOT MSVC) target_link_libraries(${MODULE_NAME} X11) target_link_libraries(Hook-Test X11 pthread) endif()