list(APPEND image_HEADERS Image.h PngWriter.h ) list(APPEND image_LIB_INCLUDES Image.cpp PngWriter.cpp PngReader.cpp ImageBitStream.cpp ) list(APPEND image_LIBS core compression) list(APPEND image_DEFINES "") add_library(image SHARED ${image_LIB_INCLUDES} ${image_HEADERS}) #target_compile_definitions(image PRIVATE ${image_DEFINES}) target_include_directories(image PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") set_target_properties( image PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON ) target_link_libraries( image PUBLIC ${image_LIBS}) set_property(TARGET image PROPERTY FOLDER src)