mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-11-16 18:25:57 +01:00
cmake: add install targets
This commit is contained in:
parent
a081d90b19
commit
946e3d604c
1 changed files with 6 additions and 0 deletions
|
@ -15,9 +15,15 @@ target_include_directories( hyprlang
|
||||||
PUBLIC "./include"
|
PUBLIC "./include"
|
||||||
PRIVATE "./src"
|
PRIVATE "./src"
|
||||||
)
|
)
|
||||||
|
set_target_properties(hyprlang PROPERTIES PUBLIC_HEADER include/hyprlang.hpp)
|
||||||
|
|
||||||
install(TARGETS hyprlang)
|
install(TARGETS hyprlang)
|
||||||
|
|
||||||
add_executable(hyprlang_test "tests/main.cpp")
|
add_executable(hyprlang_test "tests/main.cpp")
|
||||||
target_link_libraries(hyprlang_test PRIVATE hyprlang)
|
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")
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
install(TARGETS hyprlang
|
||||||
|
PUBLIC_HEADER DESTINATION include
|
||||||
|
LIBRARY DESTINATION lib)
|
||||||
|
|
Loading…
Reference in a new issue