From 3d42d7addb7ffb6e4f4e1cf523ed68fcabc26c26 Mon Sep 17 00:00:00 2001 From: k-okawa Date: Fri, 9 Jul 2021 16:04:02 +0900 Subject: [PATCH] =?UTF-8?q?CMakeList=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56dd26b..bfd968a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,9 +10,13 @@ list( REMOVE_ITEM lua_sources ${lua_path}/src/lua.c ${lua_path}/src/luac.c ) - include_directories(${lua_path}/src) -add_executable(Steganography main.cpp src/utils/argparse.h src/steganography/BaseSteganography.h src/steganography/JpgStegano.h src/steganography/JpgStegano.cpp src/utils/fileutil.h src/steganography/BaseSteganography.cpp src/utils/fileutil.cpp src/steganography/PngStegano.cpp src/steganography/PngStegano.h src/lua/LuaEngine.cpp src/lua/LuaEngine.h ${lua_sources}) + + # src +file( GLOB_RECURSE src ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src) + +add_executable(Steganography main.cpp ${src} ${lua_sources}) # OpenCv 参考 https://blog.yucchiy.com/2014/09/16/clion-opencv/ find_package(OpenCV REQUIRED)