Skip to content

Commit 7693745

Browse files
committed
fix
1 parent 721b6bb commit 7693745

42 files changed

Lines changed: 53 additions & 476 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -14,50 +14,11 @@ FetchContent_Declare(
1414
)
1515
FetchContent_MakeAvailable(argparse)
1616

17-
include(FetchContent)
18-
FetchContent_Declare(
19-
pybind11
20-
GIT_REPOSITORY https://github.com/pybind/pybind11.git
21-
GIT_TAG v2.11.1
22-
)
23-
FetchContent_MakeAvailable(pybind11)
24-
2517
find_package(OpenCV REQUIRED)
2618
find_package(fmt REQUIRED)
27-
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
2819

29-
# Library
30-
if (EXISTS "${CMAKE_SOURCE_DIR}/src")
31-
file(GLOB LIB_SOURCES
32-
"${CMAKE_SOURCE_DIR}/src/*.cpp"
33-
"${CMAKE_SOURCE_DIR}/src/detector/*.cpp"
34-
"${CMAKE_SOURCE_DIR}/src/bindings/*.cpp")
35-
else()
36-
FetchContent_MakeAvailable(shutoh)
37-
file(GLOB LIB_SOURCES
38-
"${shutoh_SOURCE_DIR}/src/*.cpp"
39-
"${shutoh_SOURCE_DIR}/src/detector/*.cpp"
40-
"${shutoh_SOURCE_DIR}/src/bindings/*.cpp"
41-
)
42-
set(SKIP_TESTS TRUE)
43-
endif()
44-
add_library(shutoh SHARED ${LIB_SOURCES})
20+
file(GLOB SOURCE_FILES "${CMAKE_SOURCE_DIR}/src/*.cpp")
21+
add_executable(shutoh ${SOURCE_FILES})
4522
target_compile_options(shutoh PRIVATE -O3 -Wall)
46-
target_include_directories(shutoh PUBLIC include ${OpenCV_INCLUDE_DIRS} ${Python3_INCLUDE_DIRS})
47-
target_link_libraries(shutoh PUBLIC ${OpenCV_LIBS} fmt::fmt argparse pybind11::module ${Python3_LIBRARIES})
48-
49-
# CLI
50-
add_executable(shutoh_cli src/main.cpp)
51-
set_target_properties(shutoh_cli PROPERTIES OUTPUT_NAME "shutoh")
52-
target_link_libraries(shutoh_cli PRIVATE shutoh)
53-
54-
# Tests
55-
if (NOT SKIP_TESTS)
56-
enable_testing()
57-
add_subdirectory(tests)
58-
59-
# Install
60-
install(TARGETS shutoh DESTINATION lib)
61-
install(TARGETS shutoh_cli DESTINATION bin)
62-
install(DIRECTORY include/ DESTINATION include)
63-
endif()
23+
target_include_directories(shutoh PUBLIC ${OpenCV_INCLUDE_DIRS} ${Python3_INCLUDE_DIRS})
24+
target_link_libraries(shutoh PUBLIC ${OpenCV_LIBS} fmt::fmt argparse)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Shutoh
22

3+
Shutoh is WIP again (2025/11/23~)
4+
35
[![Build](https://github.com/awkrail/shutoh/actions/workflows/build.yml/badge.svg)](https://github.com/awkrail/shutoh/actions/workflows/build.yml)
46
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
57

@@ -22,7 +24,7 @@ sudo cmake --install build
2224
shutoh --help
2325
```
2426

25-
## Quick Start (Command Line)
27+
## Quick Start
2628
I focus on three main commands: `split-video`, `list-scenes`, and `save-images`.
2729
Save scene information (e.g., frame numbers and time) as csv file:
2830
```

setup.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/bindings/bind_detector.cpp

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/bindings/bindings.cpp

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)