Skip to content

Commit

Permalink
Do not build validate tool in lib-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed May 26, 2023
1 parent 15effb6 commit 496a69e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ add_subdirectory(updater)

if(NOT BUILD_LIBAPPIMAGEUPDATE_ONLY)
add_subdirectory(cli)
add_subdirectory(validate)
endif()

# include Qt UI
Expand Down
11 changes: 0 additions & 11 deletions src/signing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,3 @@ target_link_libraries(signing
target_include_directories(signing
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>/src
)

# "demonstration" application
# used to be located within AppImageKit, but there is no sense in maintaining two implementations
add_executable(validate validate_main.cpp)
target_link_libraries(validate signing ${CMAKE_THREAD_LIBS_INIT})

# install target
install(
TARGETS validate
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT validate
)
10 changes: 10 additions & 0 deletions src/validate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# "demonstration" application for signing library
# there used to be an implementation in AppImageKit, but there is no sense in maintaining two variants
add_executable(validate validate_main.cpp)
target_link_libraries(validate signing ${CMAKE_THREAD_LIBS_INIT})

# install target
install(
TARGETS validate
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT validate
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <argagg/argagg.hpp>

// local headers
#include "signaturevalidator.h"
#include "signing/signaturevalidator.h"
#include "util/updatableappimage.h"
#include "util/util.h"

Expand Down

0 comments on commit 496a69e

Please sign in to comment.