Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Meyer <[email protected]>
  • Loading branch information
thibaultmeyer committed Sep 16, 2021
1 parent 0d01784 commit c33ae45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ SET(TEST_FILES ${TEST_FILES}
ADD_LIBRARY(lib-snowflakeid-obj OBJECT ${SOURCE_FILES})
ADD_LIBRARY(lib-snowflakeid-static STATIC $<TARGET_OBJECTS:lib-snowflakeid-obj>)
ADD_LIBRARY(lib-snowflakeid-shared SHARED $<TARGET_OBJECTS:lib-snowflakeid-obj>)
IF (!WIN32)
IF (NOT MSVC)
SET_TARGET_PROPERTIES(lib-snowflakeid-static PROPERTIES OUTPUT_NAME "snowflakeid")
ENDIF (!WIN32)
ENDIF (NOT MSVC)
SET_TARGET_PROPERTIES(lib-snowflakeid-shared PROPERTIES OUTPUT_NAME "snowflakeid")

# Binary (Unit Tests)
ADD_EXECUTABLE(lib-snowflakeid-test $<TARGET_OBJECTS:lib-snowflakeid-obj> ${TEST_FILES})

# Install
IF (!WIN32)
IF (NOT MSVC)
INSTALL(TARGETS lib-snowflakeid-static ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin)
ENDIF (!WIN32)
ENDIF (NOT MSVC)
INSTALL(TARGETS lib-snowflakeid-shared ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin)
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/ DESTINATION include FILES_MATCHING PATTERN "*.h*")
2 changes: 1 addition & 1 deletion test/test_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(const int argc, const char *const *argv) {
}
uint64_t time_stop = get_current_time_ms();

printf("END PERFORMANCE TEST : %" PRIu64 "ms\n", time_stop - time_start);
printf("END PERFORMANCE TEST : %" PRIu64 "ms\n", time_stop - time_start);

free(id_array);
} else if (argc > 1 && strcmp(argv[1], "SINGLE") == 0) {
Expand Down

0 comments on commit c33ae45

Please sign in to comment.