Proper LCMS2 link don't use OpenGL ES on MacOS
This commit is contained in:
+3
-2
@@ -23,7 +23,8 @@ find_library(GSLCBLAS_LIB gslcblas REQUIRED)
|
|||||||
find_library(EXIF_LIB exif REQUIRED)
|
find_library(EXIF_LIB exif REQUIRED)
|
||||||
find_library(FITS_LIB cfitsio REQUIRED)
|
find_library(FITS_LIB cfitsio REQUIRED)
|
||||||
find_library(RAW_LIB NAMES raw_r REQUIRED)
|
find_library(RAW_LIB NAMES raw_r REQUIRED)
|
||||||
find_library(WCS_LIB wcs wcslib PATHS REQUIRED)
|
find_library(WCS_LIB wcs wcslib REQUIRED)
|
||||||
|
find_library(LCMS2_LIB lcms2 REQUIRED)
|
||||||
|
|
||||||
add_subdirectory(libXISF)
|
add_subdirectory(libXISF)
|
||||||
|
|
||||||
@@ -79,7 +80,7 @@ if(COLOR_MANAGMENT)
|
|||||||
endif(COLOR_MANAGMENT)
|
endif(COLOR_MANAGMENT)
|
||||||
|
|
||||||
|
|
||||||
target_link_libraries(tenmon PRIVATE Qt6::Widgets Qt6::Sql Qt6::OpenGLWidgets Qt6::Qml ${GSL_LIB} ${GSLCBLAS_LIB} ${EXIF_LIB} ${FITS_LIB} ${RAW_LIB} ${WCS_LIB} XISF lcms2)
|
target_link_libraries(tenmon PRIVATE Qt6::Widgets Qt6::Sql Qt6::OpenGLWidgets Qt6::Qml ${GSL_LIB} ${GSLCBLAS_LIB} ${EXIF_LIB} ${FITS_LIB} ${RAW_LIB} ${WCS_LIB} ${LCMS2_LIB} XISF)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
target_link_libraries(tenmon PRIVATE Qt6::DBus "-framework CoreFoundation")
|
target_link_libraries(tenmon PRIVATE Qt6::DBus "-framework CoreFoundation")
|
||||||
elseif(UNIX)
|
elseif(UNIX)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ int main(int argc, char *argv[])
|
|||||||
setenv("LC_NUMERIC", "C", 1);
|
setenv("LC_NUMERIC", "C", 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__i386__) || defined(__x86_64__)
|
#if defined(__i386__) || defined(__x86_64__) || defined(__APPLE__)
|
||||||
bool useGLES = false;
|
bool useGLES = false;
|
||||||
#else
|
#else
|
||||||
bool useGLES = true;
|
bool useGLES = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user