mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
- Added configuration for test paths in CMake to simplify file references. - Updated load_test.cpp and various unit tests to use defined path macros for dictionary and test data files. - Introduced test_paths.h.in to manage directory paths consistently across tests.
7 lines
170 B
C
7 lines
170 B
C
#ifndef TEST_PATHS_H
|
|
#define TEST_PATHS_H
|
|
|
|
#define TEST_DATA_DIR "@CMAKE_CURRENT_SOURCE_DIR@/testdata"
|
|
#define DICT_DIR "@CMAKE_SOURCE_DIR@/dict"
|
|
|
|
#endif // TEST_PATHS_H
|