Skip to content

Commit

Permalink
cmakelists update
Browse files Browse the repository at this point in the history
  • Loading branch information
MertGunduz committed Nov 17, 2023
1 parent cc58bd4 commit acab346
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ add_executable(sub64 sub64.c)

target_link_libraries(sub64 sub64_msg sub64_menus)

# CREATE DIRECTORY
set(dest_path "$ENV{HOME}/.sub64")

# INSTALL THE EXECUTABLE TO USR/BIN
install(
TARGETS sub64
DESTINATION /usr/local/bin/
)

# CREATE CONFIG FILE
set(file_path "$ENV{HOME}/.sub64/sub64_data.txt")

install(SCRIPT
CODE "file(WRITE \"${file_path}\" \"EMPTY\")"
)
4 changes: 2 additions & 2 deletions src/app/sub64.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ static sub64_one_command one_arg_structs[] =
/*
static sub64_two_command two_arg_structs[] =
{
{"--gen-key"}
};
*/

char *two_arg_commands[] = {"--encrypt", "--decrypt", "--generate-key", "--import-key"};
char *two_arg_commands[] = {"--encrypt", "--decrypt", "--gen-key", "--import-key"};
char *one_arg_commands[] = {"--export-key", "--help", "--github", "--version", "--docs"};

int main(int argc, char *argv[])
Expand Down

0 comments on commit acab346

Please sign in to comment.