-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (21 loc) · 899 Bytes
/
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
cmake_minimum_required(VERSION 3.19)
project(Steganography)
set(CMAKE_CXX_STANDARD 17)
# Lua
set(lua_path ${CMAKE_CURRENT_SOURCE_DIR}/lib/lua)
file( GLOB_RECURSE lua_sources ${lua_path}/src/*.c )
list( REMOVE_ITEM lua_sources
${lua_path}/src/lua.c
${lua_path}/src/luac.c
)
include_directories(${lua_path}/src)
# parser
file ( GLOB_RECURSE parser parser/stackmachine/*.cpp parser/stackmachine/*.h parser/FlexLexer.h parser/PlnLexer.h parser/PlnLexer.cpp parser/PlnParser.hpp parser/PlnParser.cpp)
include_directories(parser)
# src
file( GLOB_RECURSE src ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
add_executable(Steganography ${parser} ${lua_sources} ${src} main.cpp)
# OpenCV reference: https://blog.yucchiy.com/2014/09/16/clion-opencv/
find_package(OpenCV REQUIRED)
target_link_libraries(Steganography ${OpenCV_LIBS})