Commit Graph

4 Commits (spacecruft)

Author SHA1 Message Date
Hleb Valoshka a5f80d0608 [tests] fix catch_main linkage
This fixes the following error on my Ubuntu 18.04 with CMake 3.10.2:

CMake Error at cmake/TestCase.cmake:8 (target_link_libraries):
Target "catch_main" of type OBJECT_LIBRARY may not be linked into another
target. One may link only to STATIC or SHARED libraries, or to executables
with the ENABLE_EXPORTS property set.
Call Stack (most recent call first):
test/unit/CMakeLists.txt:6 (test_case)
2021-12-06 22:48:18 +03:00
Andrew Tribick 06613bda27 Add unit tests for the tokenizer
- Added tests for the tokenizer
- Reorganized the tests so that the catch main method is only compiled once
- Fixed missing error return in the tokenizer found by the tests
2021-11-18 22:43:03 +01:00
Hleb Valoshka a0f6a2c1ff Don't build static archives
1) We don't need them
2) There are issues with MinGW as CMake adds *.a together with *.so to
linker, so it's unable to resolve proper source of exported functions
2020-07-12 10:41:53 +03:00
Hleb Valoshka 815c0e46a4 Initial unit tests implementation 2020-03-07 11:05:35 +03:00