Skip to content

Commit 496a69e

Browse files
committed
Do not build validate tool in lib-only mode
1 parent 15effb6 commit 496a69e

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ add_subdirectory(updater)
3131

3232
if(NOT BUILD_LIBAPPIMAGEUPDATE_ONLY)
3333
add_subdirectory(cli)
34+
add_subdirectory(validate)
3435
endif()
3536

3637
# include Qt UI

src/signing/CMakeLists.txt

-11
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,3 @@ target_link_libraries(signing
1111
target_include_directories(signing
1212
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>/src
1313
)
14-
15-
# "demonstration" application
16-
# used to be located within AppImageKit, but there is no sense in maintaining two implementations
17-
add_executable(validate validate_main.cpp)
18-
target_link_libraries(validate signing ${CMAKE_THREAD_LIBS_INIT})
19-
20-
# install target
21-
install(
22-
TARGETS validate
23-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT validate
24-
)

src/validate/CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# "demonstration" application for signing library
2+
# there used to be an implementation in AppImageKit, but there is no sense in maintaining two variants
3+
add_executable(validate validate_main.cpp)
4+
target_link_libraries(validate signing ${CMAKE_THREAD_LIBS_INIT})
5+
6+
# install target
7+
install(
8+
TARGETS validate
9+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT validate
10+
)

src/signing/validate_main.cpp renamed to src/validate/validate_main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <argagg/argagg.hpp>
66

77
// local headers
8-
#include "signaturevalidator.h"
8+
#include "signing/signaturevalidator.h"
99
#include "util/updatableappimage.h"
1010
#include "util/util.h"
1111

0 commit comments

Comments
 (0)