# Set the minimum version of cmake required to build this project cmake_minimum_required(VERSION 3.13) project(c_gtk_image) #This is to be able to debug and recompile automatically the libs (shared_blc). It is slower, you can remove this line and use : ${BLAR_BUILD_DIR}/lib/libblc.dylib instead of shared_blc find_package(blc REQUIRED) find_package(PkgConfig REQUIRED) pkg_check_modules(GTK3 REQUIRED gtk+-3.0) find_package(JPEG REQUIRED) add_definitions(-Wall -Wno-deprecated-declarations) #device_manager (mouse) is deprecated add_definitions(${GTK3_CFLAGS_OTHER}) add_executable(c_gtk_image c_gtk_image.cpp ../src/Display.cpp ../src/Image.cpp ../src/Histogram.cpp ../src/UIN8_Y800.cpp ) target_compile_features(c_gtk_image PRIVATE cxx_std_17) target_include_directories(c_gtk_image PRIVATE ${GTK3_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR} ../include) target_link_directories(c_gtk_image PRIVATE ${GTK3_LIBRARY_DIRS}) target_link_libraries(c_gtk_image PRIVATE blc ${GTK3_LIBRARIES} ${JPEG_LIBRARIES} )