fixed linux compilation
This commit is contained in:
parent
e3bb1f9a28
commit
83b648ae03
@ -22,3 +22,9 @@ add_executable(MessiVsRonaldo ${SOURCES})
|
||||
|
||||
# Include the "include" directory (if you have header files)
|
||||
target_include_directories(MessiVsRonaldo PUBLIC ${CMAKE_SOURCE_DIR}/include)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
# Find the X11 library
|
||||
find_package(X11 REQUIRED)
|
||||
target_link_libraries(MessiVsRonaldo ${X11_LIBRARIES})
|
||||
endif()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user