2022-01-01 18:46:31 +00:00
|
|
|
list(APPEND image_HEADERS
|
|
|
|
Image.h
|
2022-11-24 09:05:39 +00:00
|
|
|
png/PngWriter.h
|
2022-01-01 18:46:31 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND image_LIB_INCLUDES
|
|
|
|
Image.cpp
|
2022-11-24 09:05:39 +00:00
|
|
|
png/PngWriter.cpp
|
|
|
|
png/PngReader.cpp
|
|
|
|
png/PngHeader.cpp
|
2022-11-24 16:15:41 +00:00
|
|
|
png/PngInfo.cpp
|
2022-11-23 15:41:33 +00:00
|
|
|
ImageBitStream.cpp
|
2022-01-01 18:46:31 +00:00
|
|
|
)
|
|
|
|
|
2022-11-21 17:45:12 +00:00
|
|
|
list(APPEND image_LIBS core compression)
|
2022-08-22 16:11:00 +00:00
|
|
|
list(APPEND image_DEFINES "")
|
2022-08-17 08:04:52 +00:00
|
|
|
|
2022-08-22 16:11:00 +00:00
|
|
|
|
2022-01-01 18:46:31 +00:00
|
|
|
add_library(image SHARED ${image_LIB_INCLUDES} ${image_HEADERS})
|
2022-08-22 16:11:00 +00:00
|
|
|
#target_compile_definitions(image PRIVATE ${image_DEFINES})
|
2022-01-01 18:46:31 +00:00
|
|
|
|
2022-11-24 09:05:39 +00:00
|
|
|
target_include_directories(image PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/png)
|
2022-08-17 08:04:52 +00:00
|
|
|
set_target_properties( image PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
|
2022-01-01 18:46:31 +00:00
|
|
|
|
2022-08-17 08:04:52 +00:00
|
|
|
target_link_libraries( image PUBLIC ${image_LIBS})
|
2022-01-01 18:46:31 +00:00
|
|
|
|
2022-08-01 13:00:40 +00:00
|
|
|
set_property(TARGET image PROPERTY FOLDER src)
|