mirror of https://github.com/AxioDL/libSquish.git
Better CMake dependency handling
This commit is contained in:
parent
01bf9e6529
commit
fd5e6f4fe2
|
@ -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})
|
||||||
|
|
Loading…
Reference in New Issue