mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
20 lines
550 B
CMake
20 lines
550 B
CMake
|
|
||
|
# Find the libPNG
|
||
|
find_package(PNG REQUIRED QUIET)
|
||
|
|
||
|
# Add additional includes dirs
|
||
|
include_directories(${PNG_INCLUDE_DIR})
|
||
|
|
||
|
# Define the current source locations
|
||
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/hyperionpng)
|
||
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/hyperionpng)
|
||
|
|
||
|
# Create the 'rasplight-png' library
|
||
|
add_library(hyperion-png SHARED
|
||
|
${CURRENT_SOURCE_DIR}/hyperion-png.cpp
|
||
|
${CURRENT_SOURCE_DIR}/pngwriter.h
|
||
|
${CURRENT_SOURCE_DIR}/pngwriter.cc)
|
||
|
|
||
|
target_link_libraries(hyperion-png
|
||
|
${PNG_LIBRARIES})
|