CMakeLists.txt 1013 Bytes
Newer Older
Your Name's avatar
Your Name committed
1
# Set the minimum version of cmake required to build this project
2
cmake_minimum_required(VERSION 3.13)
Your Name's avatar
Your Name committed
3
4
5
6
7

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

8
find_package(blc REQUIRED)
Your Name's avatar
Your Name committed
9
10
11
12
find_package(PkgConfig REQUIRED) 
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
find_package(JPEG REQUIRED) 

13
add_definitions(-Wall  -Wno-deprecated-declarations) #device_manager (mouse) is deprecated
Your Name's avatar
Your Name committed
14
add_definitions(${GTK3_CFLAGS_OTHER})
15
16
17
18
19
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} )
Your Name's avatar
Your Name committed
20
21
22
23
24