Skip to content

Commit

Permalink
Improve formatting in cmake files
Browse files Browse the repository at this point in the history
  • Loading branch information
agievich committed Jun 5, 2024
1 parent de194d1 commit 820beb0
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 75 deletions.
13 changes: 6 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ option(INSTALL_HEADERS "Install headers." ON)

if(CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
CACHE STRING "Choose the type of build: \
Release Debug Coverage ASan ASanDbg MemSan MemSanDbg Check"
FORCE)
CACHE STRING "Choose the type of build: \
Release Debug Coverage ASan ASanDbg MemSan MemSanDbg Check"
FORCE)
else()
set(CMAKE_BUILD_TYPE Release
CACHE STRING
"Choose the type of build: \
Release Debug Coverage ASan ASanDbg MemSan MemSanDbg Check"
FORCE)
CACHE STRING "Choose the type of build: \
Release Debug Coverage ASan ASanDbg MemSan MemSanDbg Check"
FORCE)
endif()

message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
Expand Down
52 changes: 26 additions & 26 deletions cmd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,38 @@ if(MSVC)
endif()

add_executable(bee2cmd
bsum/bsum.c
core/cmd_arg.c
core/cmd_cvc.c
core/cmd_date.c
core/cmd_file.c
core/cmd_print.c
core/cmd_privkey.c
core/cmd_pwd.c
core/cmd_rng.c
core/cmd_sig.c
core/cmd_term.c
core/whereami.c
csr/csr.c
cvc/cvc.c
cvr/cvr.c
es/es.c
kg/kg.c
pwd/pwd.c
sig/sig.c
ver/ver.c
cmd_main.c
bsum/bsum.c
core/cmd_arg.c
core/cmd_cvc.c
core/cmd_date.c
core/cmd_file.c
core/cmd_print.c
core/cmd_privkey.c
core/cmd_pwd.c
core/cmd_rng.c
core/cmd_sig.c
core/cmd_term.c
core/whereami.c
csr/csr.c
cvc/cvc.c
cvr/cvr.c
es/es.c
kg/kg.c
pwd/pwd.c
sig/sig.c
ver/ver.c
cmd_main.c
)

# CMake does not set MINGW in MSys2[MinGW] environment
if(WIN32 OR MINGW OR ${CMAKE_C_PLATFORM_ID} STREQUAL MinGW)
target_sources(bee2cmd
PRIVATE stamp/stamp.c
)
target_sources(bee2cmd PRIVATE stamp/stamp.c)
endif()

target_link_libraries(bee2cmd bee2_static)

install(TARGETS bee2cmd
DESTINATION ${BIN_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
DESTINATION ${BIN_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
)
85 changes: 43 additions & 42 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
add_executable(testbee2
core/apdu_test.c
core/b64_test.c
core/blob_test.c
core/dec_test.c
core/der_test.c
core/hex_test.c
core/mem_test.c
core/mt_test.c
core/obj_test.c
core/oid_test.c
core/prng_test.c
core/rng_test.c
core/str_test.c
core/tm_test.c
core/u16_test.c
core/u32_test.c
core/u64_test.c
core/util_test.c
crypto/bake_test.c
crypto/bash_bench.c
crypto/bash_test.c
crypto/bels_test.c
crypto/belt_bench.c
crypto/belt_test.c
crypto/bign_test.c
crypto/bign96_test.c
crypto/botp_test.c
crypto/bpki_test.c
crypto/brng_test.c
crypto/btok_test.c
crypto/dstu_test.c
crypto/g12s_test.c
crypto/pfok_test.c
crypto/stb99_test.c
math/ecp_test.c
math/ecp_bench.c
math/pp_test.c
math/pri_test.c
math/word_test.c
math/ww_test.c
math/zz_test.c
test.c
core/apdu_test.c
core/b64_test.c
core/blob_test.c
core/dec_test.c
core/der_test.c
core/hex_test.c
core/mem_test.c
core/mt_test.c
core/obj_test.c
core/oid_test.c
core/prng_test.c
core/rng_test.c
core/str_test.c
core/tm_test.c
core/u16_test.c
core/u32_test.c
core/u64_test.c
core/util_test.c
crypto/bake_test.c
crypto/bash_bench.c
crypto/bash_test.c
crypto/bels_test.c
crypto/belt_bench.c
crypto/belt_test.c
crypto/bign_test.c
crypto/bign96_test.c
crypto/botp_test.c
crypto/bpki_test.c
crypto/brng_test.c
crypto/btok_test.c
crypto/dstu_test.c
crypto/g12s_test.c
crypto/pfok_test.c
crypto/stb99_test.c
math/ecp_test.c
math/ecp_bench.c
math/pp_test.c
math/pri_test.c
math/word_test.c
math/ww_test.c
math/zz_test.c
test.c
)

target_link_libraries(testbee2 bee2_static)

add_test(testbee2 testbee2)

0 comments on commit 820beb0

Please sign in to comment.