fixed linux compilation
This commit is contained in:
parent
e3bb1f9a28
commit
83b648ae03
@ -21,4 +21,10 @@ file(GLOB SOURCES "src/*.cpp")
|
||||
add_executable(MessiVsRonaldo ${SOURCES})
|
||||
|
||||
# Include the "include" directory (if you have header files)
|
||||
target_include_directories(MessiVsRonaldo PUBLIC ${CMAKE_SOURCE_DIR}/include)
|
||||
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