1
Fork 0
This repository has been archived on 2025-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
image-streams/CMakeLists.txt
2016-11-24 22:17:39 +01:00

19 lines
487 B
CMake

cmake_minimum_required(VERSION 2.8)
set(LIBNAME ImageStreams)
file(GLOB sources "*.cpp")
file(GLOB headers "include/*.hpp")
add_library(${LIBNAME} ${headers} ${sources})
find_library(LIBPNG png)
set(libs ${LIBPNG})
set(${LIBNAME}_LIBRARIES ${LIBNAME} ${libs} CACHE INTERNAL "")
target_link_libraries(${LIBNAME} ${libs})
target_include_directories(${LIBNAME} PUBLIC "include/")
install(TARGETS ${LIBNAME} DESTINATION lib)
install(FILES ${headers} DESTINATION include/ImageStreams)