Skip to content

Commit

Permalink
Use CMake to generate Makefile and drop manual created Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Johann Neuhauser <[email protected]>
  • Loading branch information
jneuhauser committed Nov 29, 2019
1 parent a2cf6d7 commit 0895319
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build/
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cmake_minimum_required(VERSION 3.0)
project(tinymembench ASM C)
set(CMAKE_C_STANDARD 11)

set(asm_files
aarch64-asm.S
arm-neon.S
mips-32.S
x86-sse2.S
)

set(sources_files
asm-opt.c
main.c
util.c
)

add_executable(tinymembench ${asm_files} ${sources_files})
target_include_directories(tinymembench PRIVATE .)
target_link_libraries(tinymembench m)

INSTALL(TARGETS tinymembench RUNTIME DESTINATION /usr/local/bin/)
31 changes: 0 additions & 31 deletions Makefile

This file was deleted.

0 comments on commit 0895319

Please sign in to comment.