tiwiq/meson.build

47 lines
1.2 KiB
Meson
Raw Normal View History

2023-10-03 17:28:47 +00:00
project('tiwiq',
'cpp',
version: '0.0.0',
default_options: [
'prefix=/usr',
'warning_level=3',
'cpp_std=c++17',
])
twq_lib = static_library('tiwiq',
sources: [
'src/core/KeyMod.cpp',
'src/core/Shortcut.cpp',
2023-10-04 09:38:14 +00:00
'src/core/Command.cpp',
'src/core/Context.cpp',
'src/core/Binding.cpp',
'src/core/Executor.cpp',
2023-10-03 17:28:47 +00:00
],
dependencies: [
dependency('ncursesw')
])
twq_dep = declare_dependency(
link_with: twq_lib,
include_directories: ['src/']
)
executable('twq',
sources: [
'src/main.cpp'
],
dependencies: [
twq_dep
],
install: true)
executable('twq-tests',
sources: [
'tests/main.cpp',
'tests/Shortcut.cpp',
2023-10-04 09:38:14 +00:00
'tests/Executor.cpp',
2023-10-03 17:28:47 +00:00
],
dependencies: [
twq_dep,
dependency('catch2')
])