Skip to content

Commit

Permalink
[Fixed] x11grab cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotyze committed Oct 1, 2024
1 parent 7198300 commit ad7c631
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/x11grab/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
project(x11grab)

find_package(X11)

if(NOT X11_XShm_FOUND)
return()
endif()

list(APPEND MODULES_DETECTED ${PROJECT_NAME})
set(MODULES_DETECTED ${MODULES_DETECTED} PARENT_SCOPE)

set(SRCS x11grab.c)

if(STATIC)
Expand All @@ -8,5 +17,5 @@ else()
add_library(${PROJECT_NAME} MODULE ${SRCS})
endif()

target_include_directories(${PROJECT_NAME} PRIVATE ${X11_INCLUDE_DIRS})
target_include_directories(${PROJECT_NAME} PRIVATE ${X11_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} PRIVATE ${X11_LIBRARIES})

0 comments on commit ad7c631

Please sign in to comment.