-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (23 loc) · 1.02 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
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 11)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
file(DOWNLOAD https://raw.githubusercontent.com/myint/optparse/v1.0/optparse.h include/optparse.hpp)
file(DOWNLOAD https://raw.githubusercontent.com/catchorg/Catch2/v2.6.0/single_include/catch2/catch.hpp include/catch.hpp)
include_directories(include)
set(SOURCE_FILES
src/least_significant_bit.cpp
src/discrete_cosine_transform.cpp
src/steganography.cpp
)
set(TEST_FILES
test/steganography.cpp
test/least_significant_bit.cpp
test/discrete_cosine_transform.cpp
)
add_executable(steganography src/main.cpp ${SOURCE_FILES})
add_executable(steganography-testing test/main.cpp ${SOURCE_FILES} ${TEST_FILES})
find_package (Threads)
find_package(Boost REQUIRED filesystem)
find_package(OpenCV REQUIRED)
target_link_libraries(steganography ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} ${OpenCV_LIBS})
target_link_libraries(steganography-testing ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} ${OpenCV_LIBS})