From 946e3d604c1bbc85815d4366f6675ba4ea2227e4 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 29 Dec 2023 20:04:23 +0100 Subject: [PATCH] cmake: add install targets --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4fecefb..9a654b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,9 +15,15 @@ target_include_directories( hyprlang PUBLIC "./include" PRIVATE "./src" ) +set_target_properties(hyprlang PROPERTIES PUBLIC_HEADER include/hyprlang.hpp) 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") + +# Installation +install(TARGETS hyprlang + PUBLIC_HEADER DESTINATION include + LIBRARY DESTINATION lib)