From 55892696bb35f640f9f22c465c216f221ac5c8ad Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 11 Jun 2019 15:58:24 -1000 Subject: [PATCH] Better CMake dependency integration --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37fdd7b..148aec9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.10) project(lzokay) add_library(lzokay lzokay.hpp lzokay.cpp) -set(LZOKAY_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "lzokay include path" FORCE) add_executable(lzokaytest test.cpp) +target_include_directories(lzokay PUBLIC $) target_link_libraries(lzokaytest lzokay) \ No newline at end of file