From fd5e6f4fe294bcdde24e591fcef37dd5d740e060 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 11 Jun 2019 15:59:49 -1000 Subject: [PATCH] Better CMake dependency handling --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1af51f..4319c9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ PROJECT(squish) -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3) +CMAKE_MINIMUM_REQUIRED(VERSION 3.13) SET(SQUISH_HDRS squish.h @@ -42,6 +42,5 @@ SET(SQUISH_SRCS squish.cpp ) -INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) - ADD_LIBRARY(squish ${SQUISH_SRCS} ${SQUISH_HDRS}) +TARGET_INCLUDE_DIRECTORIES(squish PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})