CMake: install lib and fix test path

This commit is contained in:
Mihai Fufezan 2023-12-28 23:11:27 +02:00
parent b355124950
commit 57fdf6038e
No known key found for this signature in database

View file

@ -16,7 +16,8 @@ target_include_directories( hyprlang
PRIVATE "./src"
)
install(TARGETS hyprlang)
add_executable(hyprlang_test "tests/main.cpp")
target_link_libraries(hyprlang_test PRIVATE hyprlang)
add_test(NAME "Parsing" WORKING_DIRECTORY "./tests/" COMMAND hyprlang_test "parse")
add_test(NAME "Parsing" WORKING_DIRECTORY "../tests/" COMMAND hyprlang_test "parse")