"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CMakeLists.txt" between
gmic_3.0.1.tar.gz and gmic_3.0.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

CMakeLists.txt  (gmic_3.0.1):CMakeLists.txt  (gmic_3.0.2)
skipping to change at line 99 skipping to change at line 99
option(ENABLE_DYNAMIC_LINKING "Dynamically link the binaries to the GMIC shared library" OFF) option(ENABLE_DYNAMIC_LINKING "Dynamically link the binaries to the GMIC shared library" OFF)
option(ENABLE_LTO "Enable -flto (Link Time Optimizer) on gcc and clang" OFF) option(ENABLE_LTO "Enable -flto (Link Time Optimizer) on gcc and clang" OFF)
if(NOT CMAKE_BUILD_TYPE) if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
endif() endif()
# compile flags # compile flags
set(CMAKE_POSITION_INDEPENDENT_CODE True) set(CMAKE_POSITION_INDEPENDENT_CODE True)
list(APPEND GMIC_CXX_COMPILE_FLAGS -Dgmic_build -Dcimg_use_vt100 -Dgmic_is_paral lel -Dcimg_use_abort) list(APPEND GMIC_CXX_COMPILE_FLAGS -Dgmic_core -Dcimg_use_vt100 -Dgmic_is_parall el -Dcimg_use_abort)
if(APPLE) if(APPLE)
list(APPEND GMIC_CXX_COMPILE_FLAGS -mmacosx-version-min=10.8 -stdlib=libc++ -Wno-error=c++11-narrowing -Wc++11-extensions -fpermissive) list(APPEND GMIC_CXX_COMPILE_FLAGS -mmacosx-version-min=10.8 -stdlib=libc++ -Wno-error=c++11-narrowing -Wc++11-extensions -fpermissive)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
list(APPEND GMIC_CXX_COMPILE_FLAGS -Wno-error=c++11-narrowing -fpermissive)
else() else()
list(APPEND GMIC_CXX_COMPILE_FLAGS -Wno-error=narrowing -fno-ipa-sra -fpermi ssive) list(APPEND GMIC_CXX_COMPILE_FLAGS -Wno-error=narrowing -fno-ipa-sra -fpermi ssive)
endif() endif()
if(NOT "${PRERELEASE_TAG}" STREQUAL "") if(NOT "${PRERELEASE_TAG}" STREQUAL "")
list(APPEND GMIC_CXX_COMPILE_FLAGS "-Dgmic_prerelease=\"${PRERELEASE_TAG}\"" ) list(APPEND GMIC_CXX_COMPILE_FLAGS "-Dgmic_prerelease=\"${PRERELEASE_TAG}\"" )
endif() endif()
if (ENABLE_LTO) if (ENABLE_LTO)
# https://stackoverflow.com/a/47370726/160386 # https://stackoverflow.com/a/47370726/160386
skipping to change at line 168 skipping to change at line 170
$<INSTALL_INTERFACE:include> $<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
) )
install(TARGETS libgmic EXPORT GmicTargets install(TARGETS libgmic EXPORT GmicTargets
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_LIBDIR}" PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
) )
install(FILES src/gmic.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") install(FILES src/gmic.h src/CImg.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
endif() endif()
if(BUILD_LIB_STATIC) if(BUILD_LIB_STATIC)
add_library(libgmicstatic STATIC ${CLI_Sources}) add_library(libgmicstatic STATIC ${CLI_Sources})
target_compile_options(libgmicstatic PRIVATE ${GMIC_CXX_COMPILE_FLAGS}) target_compile_options(libgmicstatic PRIVATE ${GMIC_CXX_COMPILE_FLAGS})
set_target_properties(libgmicstatic PROPERTIES OUTPUT_NAME "gmic") set_target_properties(libgmicstatic PROPERTIES OUTPUT_NAME "gmic")
target_link_libraries(libgmicstatic target_link_libraries(libgmicstatic
CImg::CImg CImg::CImg
GMicStdlib::Stdlib GMicStdlib::Stdlib
) )
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)