-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CMake to generate Makefile and drop manual created Makefile
Signed-off-by: Johann Neuhauser <[email protected]>
- Loading branch information
1 parent
a2cf6d7
commit 0895319
Showing
3 changed files
with
23 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/) |