CMakeLists.txt 1.04 KB
Newer Older
Your Name's avatar
Your Name committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Set the minimum version of cmake required to build this project
cmake_minimum_required(VERSION 2.6)

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_network REQUIRED)
find_package(blc_channel REQUIRED) #For compatibilité with common.h

find_package(blc_image REQUIRED)  
find_package(blc_program REQUIRED)

find_package(PkgConfig REQUIRED) 
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
find_package(JPEG REQUIRED) 

add_definitions(-Wall ${BL_DEFINITIONS} -std=c++17 -Wno-deprecated-declarations) #device_manager (mouse) is deprecated
include_directories(${GTK3_INCLUDE_DIRS} ${BL_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR} ../include)
link_directories(${GTK3_LIBRARY_DIRS})
add_definitions(${GTK3_CFLAGS_OTHER})
add_executable(c_gtk_image c_gtk_image.cpp ../src/image_display.cpp ../src/histogram.cpp)
target_link_libraries(c_gtk_image ${GTK3_LIBRARIES} ${BL_LIBRARIES} ${JPEG_LIBRARIES} )