|
|
|
@ -7,7 +7,6 @@ cmake = import('cmake')
|
|
|
|
|
if get_option('default_library') == 'shared'
|
|
|
|
|
raylib = dependency('raylib', required: false) # Try to find dependency with pkg-config
|
|
|
|
|
if not raylib.found()
|
|
|
|
|
message('===========+RAYLIB NOT FOUND===============')
|
|
|
|
|
raylib = compiler.find_library('raylib', has_headers: ['raylib.h', 'raymath.h'], required: false) # Try to manually search for the dependency
|
|
|
|
|
endif
|
|
|
|
|
if not raylib.found()
|
|
|
|
@ -35,6 +34,6 @@ endif
|
|
|
|
|
|
|
|
|
|
executable('pong',
|
|
|
|
|
'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp', 'check_input.cpp',
|
|
|
|
|
'serialization.c',
|
|
|
|
|
'serialization.c', 'timer.c',
|
|
|
|
|
dependencies: [raylib, ws2_dep, winmm]
|
|
|
|
|
)
|
|
|
|
|