Better CMake dependency handling

This commit is contained in:
Jack Andersen 2019-06-11 15:59:49 -10:00
parent 01bf9e6529
commit fd5e6f4fe2
1 changed files with 2 additions and 3 deletions

View File

@ -9,7 +9,7 @@
PROJECT(squish) PROJECT(squish)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3) CMAKE_MINIMUM_REQUIRED(VERSION 3.13)
SET(SQUISH_HDRS SET(SQUISH_HDRS
squish.h squish.h
@ -42,6 +42,5 @@ SET(SQUISH_SRCS
squish.cpp squish.cpp
) )
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
ADD_LIBRARY(squish ${SQUISH_SRCS} ${SQUISH_HDRS}) ADD_LIBRARY(squish ${SQUISH_SRCS} ${SQUISH_HDRS})
TARGET_INCLUDE_DIRECTORIES(squish PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})