Add meson build scripts
This commit is contained in:
parent
9919f1aeb2
commit
82b5200857
11 changed files with 2789 additions and 2 deletions
|
@ -14,7 +14,7 @@ set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
|
|||
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PRIVATE ${DUCKHANDY_SOURCE_DIR}/lib/Catch2/single_include
|
||||
PRIVATE ${DUCKHANDY_SOURCE_DIR}/subprojects/Catch2/Catch2/single_include
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
|
|
19
test/unit/meson.build
Normal file
19
test/unit/meson.build
Normal file
|
@ -0,0 +1,19 @@
|
|||
catch2_dep = dependency('Catch2', fallback: ['Catch2', 'catch2_dep'])
|
||||
|
||||
unit_test_prog = executable(meson.project_name(),
|
||||
'int_conv_test.cpp',
|
||||
'main.cpp',
|
||||
'endianness_test.cpp',
|
||||
'reversed_sized_array_test.cpp',
|
||||
'bitfield_pack_test.cpp',
|
||||
'resource_pool_test.cpp',
|
||||
'version_test.cpp',
|
||||
'tiger_test.cpp',
|
||||
install: false,
|
||||
dependencies: [sprout_dep, catch2_dep],
|
||||
include_directories: [public_incl],
|
||||
)
|
||||
|
||||
test('unit_' + meson.project_name(),
|
||||
unit_test_prog,
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue