fixes macOS autobuild (#5674)
* update macOS autobuild yaml * updates */CMakeLists* for macOS autobuild compatibility * "" a dir for cmake * Un empty an empty EXTRA_INCDIR * use a cmake operator * Use the . dir to un-empty a string * fix minutes timer in macos yaml * test & skip instead of load & include * disregard fractional part of minutes in mac yaml * add another cmake test * fix typo in mac yaml * fix other part of same typo * correct a filename in mac yaml * test all include dirs * fix of mac yaml * mac:fix a path in yaml * mac:and its antecedent * options.h include a dir * test __has_include (gcc 5.* & up & clang) * remove a printf() in mac yaml * mac:change a "" and an elseif() to else() * fix a whitespace error * fix 2 whitespace errors * ZULU>UTC * add a "UTC * on the other side of the " * mac:properly set default LOCAL_PREFIX in CACHE * use of zsh subshells in macos yaml * mac:remove some && * mac:remove some " * mac:floating point divisors * mac:use double paren (()) * mac:add a dir * mac:floatize with decimal point * mac:zsh -c certain lines * remove a marker
This commit is contained in:
@@ -1,35 +1,60 @@
|
||||
include_directories(${EXTRA_INCDIR}
|
||||
${EXPAT_INCLUDE_DIRS}
|
||||
${FFTW3F_INCLUDE_DIRS}
|
||||
${GLIB2_INCLUDE_DIRS}
|
||||
${GLIBMM_INCLUDE_DIRS}
|
||||
${GOBJECT_INCLUDE_DIRS}
|
||||
${GTHREAD_INCLUDE_DIRS}
|
||||
${GTKMM_INCLUDE_DIRS}
|
||||
${GTK_INCLUDE_DIRS}
|
||||
${IPTCDATA_INCLUDE_DIRS}
|
||||
${LCMS_INCLUDE_DIRS}
|
||||
${LENSFUN_INCLUDE_DIRS}
|
||||
${RSVG_INCLUDE_DIRS}
|
||||
)
|
||||
if(EXTRA_INCDIR)
|
||||
include_directories("${EXTRA_INCDIR}")
|
||||
endif()
|
||||
if(EXPAT_INCLUDE_DIRS)
|
||||
include_directories("${EXPAT_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(FFTW3F_INCLUDE_DIRS)
|
||||
include_directories("${FFTW3F_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(GLIB2_INCLUDE_DIRS)
|
||||
include_directories("${GLIB2_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(GLIBMM_INCLUDE_DIRS)
|
||||
include_directories("${GLIBMM_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(GOBJECT_INCLUDE_DIRS)
|
||||
include_directories("${GOBJECT_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(GTHREAD_INCLUDE_DIRS)
|
||||
include_directories("${GTHREAD_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(GTKMM_INCLUDE_DIRS)
|
||||
include_directories("${GTKMM_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(GTK_INCLUDE_DIRS)
|
||||
include_directories("${GTK_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(IPTCDATA_INCLUDE_DIRS)
|
||||
include_directories("${IPTCDATA_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(LCMS_INCLUDE_DIRS)
|
||||
include_directories("${LCMS_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(LENSFUN_INCLUDE_DIRS)
|
||||
include_directories("${LENSFUN_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(RSVG_INCLUDE_DIRS)
|
||||
include_directories("${RSVG_INCLUDE_DIRS}")
|
||||
endif()
|
||||
if(NOT WITH_SYSTEM_KLT)
|
||||
include_directories("${CMAKE_SOURCE_DIR}/rtengine/klt")
|
||||
else()
|
||||
include_directories(${KLT_INCLUDE_DIRS})
|
||||
include_directories("${KLT_INCLUDE_DIRS}")
|
||||
endif()
|
||||
|
||||
link_directories("${PROJECT_SOURCE_DIR}/rtexif"
|
||||
${EXPAT_LIBRARY_DIRS}
|
||||
${EXTRA_LIBDIR}
|
||||
${FFTW3F_LIBRARY_DIRS}
|
||||
${GLIB2_LIBRARY_DIRS}
|
||||
${GLIBMM_LIBRARY_DIRS}
|
||||
${GOBJECT_LIBRARY_DIRS}
|
||||
${GTHREAD_LIBRARY_DIRS}
|
||||
${IPTCDATA_LIBRARY_DIRS}
|
||||
${LCMS_LIBRARY_DIRS}
|
||||
${LENSFUN_LIBRARY_DIRS}
|
||||
${RSVG_LIBRARY_DIRS}
|
||||
"${EXPAT_LIBRARY_DIRS}"
|
||||
"${EXTRA_LIBDIR}"
|
||||
"${FFTW3F_LIBRARY_DIRS}"
|
||||
"${GLIB2_LIBRARY_DIRS}"
|
||||
"${GLIBMM_LIBRARY_DIRS}"
|
||||
"${GOBJECT_LIBRARY_DIRS}"
|
||||
"${GTHREAD_LIBRARY_DIRS}"
|
||||
"${IPTCDATA_LIBRARY_DIRS}"
|
||||
"${LCMS_LIBRARY_DIRS}"
|
||||
"${LENSFUN_LIBRARY_DIRS}"
|
||||
"${RSVG_LIBRARY_DIRS}"
|
||||
)
|
||||
|
||||
set(CAMCONSTSFILE "camconst.json")
|
||||
@@ -165,13 +190,13 @@ endif()
|
||||
|
||||
include_directories(BEFORE "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
||||
add_library(rtengine STATIC ${RTENGINESOURCEFILES})
|
||||
add_library(rtengine STATIC "${RTENGINESOURCEFILES}")
|
||||
|
||||
add_dependencies(rtengine UpdateInfo)
|
||||
|
||||
# It may be nice to store library version too
|
||||
if(BUILD_SHARED_LIBS)
|
||||
install(TARGETS rtengine DESTINATION ${LIBDIR})
|
||||
install(TARGETS rtengine DESTINATION "${LIBDIR}")
|
||||
endif()
|
||||
|
||||
set_target_properties(rtengine PROPERTIES COMPILE_FLAGS "${RTENGINE_CXX_FLAGS}")
|
||||
|
||||
Reference in New Issue
Block a user