@@ -36,6 +36,7 @@ include(DefaultTargetOptions)
36
36
target_link_libraries (${TARGET} PRIVATE whisper )
37
37
38
38
set_target_properties (${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON )
39
+ set_target_properties (${TARGET} PROPERTIES FOLDER "libs" )
39
40
40
41
if (WHISPER_SDL2 )
41
42
# common-sdl
@@ -53,36 +54,63 @@ if (WHISPER_SDL2)
53
54
target_link_libraries (${TARGET} PRIVATE ${SDL2_LIBRARIES} )
54
55
55
56
set_target_properties (${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON )
57
+ set_target_properties (${TARGET} PROPERTIES FOLDER "libs" )
56
58
endif ()
57
59
58
60
# add json lib
59
61
add_library (json_cpp INTERFACE json.hpp )
62
+ set_target_properties (json_cpp PROPERTIES FOLDER "libs" )
60
63
61
64
# examples
62
65
63
66
include_directories (${CMAKE_CURRENT_SOURCE_DIR} )
64
67
65
68
if (EMSCRIPTEN )
66
69
add_subdirectory (whisper.wasm )
70
+ set_target_properties (libmain PROPERTIES FOLDER "libs" )
67
71
add_subdirectory (stream.wasm )
72
+ set_target_properties (libstream PROPERTIES FOLDER "libs" )
68
73
add_subdirectory (command .wasm )
74
+ set_target_properties (libcommand PROPERTIES FOLDER "libs" )
69
75
add_subdirectory (talk.wasm )
76
+ set_target_properties (libtalk PROPERTIES FOLDER "libs" )
70
77
add_subdirectory (bench.wasm )
78
+ set_target_properties (libbench PROPERTIES FOLDER "libs" )
71
79
elseif (CMAKE_JS_VERSION )
72
80
add_subdirectory (addon.node )
81
+ set_target_properties (addon.node PROPERTIES FOLDER "examples" )
73
82
else ()
74
83
add_subdirectory (main )
84
+ set_target_properties (main PROPERTIES FOLDER "examples" )
85
+ if (WHISPER_SDL2 )
75
86
add_subdirectory (stream )
87
+ set_target_properties (stream PROPERTIES FOLDER "examples" )
88
+ endif (WHISPER_SDL2 )
76
89
add_subdirectory (server )
90
+ set_target_properties (server PROPERTIES FOLDER "examples" )
91
+ if (WHISPER_SDL2 )
77
92
add_subdirectory (command )
93
+ set_target_properties (command PROPERTIES FOLDER "examples" )
94
+ endif (WHISPER_SDL2 )
78
95
add_subdirectory (bench )
96
+ set_target_properties (bench PROPERTIES FOLDER "examples" )
79
97
add_subdirectory (quantize )
98
+ set_target_properties (quantize PROPERTIES FOLDER "examples" )
99
+ if (WHISPER_SDL2 )
80
100
add_subdirectory (talk )
101
+ set_target_properties (talk PROPERTIES FOLDER "examples" )
81
102
add_subdirectory (talk-llama )
103
+ set_target_properties (talk-llama PROPERTIES FOLDER "examples" )
82
104
add_subdirectory (lsp )
105
+ set_target_properties (lsp PROPERTIES FOLDER "examples" )
83
106
if (LLAMA_SYCL )
84
107
add_subdirectory (sycl )
108
+ set_target_properties (sycl PROPERTIES FOLDER "examples" )
85
109
endif ()
110
+ endif (WHISPER_SDL2 )
86
111
endif ()
87
112
88
- add_subdirectory (wchess )
113
+ if (WHISPER_SDL2 )
114
+ add_subdirectory (wchess )
115
+ set_target_properties (wchess PROPERTIES FOLDER "examples" )
116
+ endif (WHISPER_SDL2 )
0 commit comments