-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (27 loc) · 1.1 KB
/
CMakeLists.txt
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
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.13.4)
project(jpeg_catcher)
set(CMAKE_CXX_STANDARD 14)
set(CXX_STANDARD_REQUIRED ON)
#set(CMAKE_VERBOSE_MAKEFILE ON)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
include(opencv.cmake)
find_package(CURL REQUIRED)
add_executable(${PROJECT_NAME} main.cpp
http_parser.hpp http_parser.cpp
hex_dump.hpp hex_dump.cpp
http_io.cpp http_io.hpp
string_util.cpp string_util.hpp
magic_mime.hpp magic_mime.cpp
base64.hpp base64.cpp
opencv_util.hpp opencv_util.cpp
jsonxx.h jsonxx.cc
debug_output.hpp mjpeg_utils.cpp mjpeg_utils.hpp)
# include(jsoncpp.cmake)
include(libmagic.cmake)
target_include_directories(${PROJECT_NAME} BEFORE PUBLIC ${OPENCV_INCLUDE_DIR})
target_include_directories(${PROJECT_NAME} BEFORE PUBLIC ${CURL_INCLUDE_DIR}/curl)
target_link_libraries(${PROJECT_NAME} curl)
get_property(dirs TARGET ${PROJECT_NAME} PROPERTY INCLUDE_DIRECTORIES)
message(STATUS "INCLUDE_DIRECTORIES: ${dirs}")
get_property(libs TARGET ${PROJECT_NAME} PROPERTY LINK_LIBRARIES)
message(STATUS "LINK_LIBRARIES: ${libs}")