reorganize cmake in small scripts with some fix from https://github.com/cnjinhao/nana/pull/278

This commit is contained in:
qPCR4vir
2018-10-02 18:47:04 +02:00
parent b430f82855
commit 2e6a85bf89
10 changed files with 233 additions and 275 deletions

View File

@@ -11,8 +11,10 @@ if(NANA_CMAKE_ENABLE_PNG)
target_include_directories(nana PUBLIC ${PNG_INCLUDE_DIRS})
target_link_libraries (nana PUBLIC ${PNG_LIBRARIES})
target_compile_definitions(nana PUBLIC USE_LIBPNG_FROM_OS ${PNG_DEFINITIONS})
# target_include_directories (nana SYSTEM PUBLIC PNG::PNG) # ??
# target_compile_definitions (nana PUBLIC USE_LIBPNG_FROM_OS)
endif()
else()
target_compile_definitions(nana PUBLIC -lpng)
target_link_libraries(nana PUBLIC png) # provided by nana?
endif()
endif()