Skip to content

Commit 5bf438d

Browse files
authored
refactor: split examples common into header and source (#1393)
1 parent 359eb8b commit 5bf438d

9 files changed

Lines changed: 1970 additions & 1919 deletions

File tree

examples/cli/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set(TARGET sd-cli)
22

33
add_executable(${TARGET}
4+
../common/common.cpp
45
../common/log.cpp
56
../common/media_io.cpp
67
image_metadata.cpp

examples/cli/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
// #include "preprocessing.hpp"
1616
#include "stable-diffusion.h"
1717

18-
#include "common/common.hpp"
18+
#include "common/common.h"
1919
#include "common/media_io.h"
2020
#include "common/resource_owners.hpp"
2121
#include "image_metadata.h"
2222

23+
namespace fs = std::filesystem;
24+
2325
const char* previews_str[] = {
2426
"none",
2527
"proj",

0 commit comments

Comments
 (0)