project('cubes plus plus', 'cpp') sourcesCommon = ['common/block/BlockRegistry.cpp', 'common/block/Block.cpp', 'common/stream/Stream.cpp', 'common/world/Chunk.cpp', 'common/world/World.cpp', 'common/utils/Face.cpp', 'common/utils/DataVector.cpp'] sourcesServer = ['server/GameServer.cpp', 'server/commands/CommandUtils.cpp', 'server/commands/ServerCommands.cpp', 'server/commands/CommandManager.cpp', 'server/network/Server.cpp', 'server/Main.cpp'] sourcesClient = ['client/Main.cpp', 'client/GameClient.cpp', 'client/Keys.cpp'] sourcesTest = ['tests/Main.cpp', 'server/commands/CommandUtils.cpp'] c_compiler = meson.get_compiler('cpp') readline = c_compiler.find_library('readline', required: true) threadDep = dependency('threads') glewDep = dependency('glew') glfwDep = dependency('glfw3') pngDep = dependency('libpng') executable('game_server', sources: sourcesCommon + sourcesServer, dependencies : [threadDep, readline], cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror']) #executable('game_tests', # sources: sourcesTest) executable('game_client', sources: sourcesCommon + sourcesClient, dependencies : [threadDep, glewDep, glfwDep, pngDep], cpp_args: ['-Wall', '-Wextra', '-pedantic', '-Werror'])