mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-24 20:49:25 +00:00
c4bccf410b
* Fix L2 cache size detect. * Add test for get_optimal_threads_count.
16 lines
361 B
CMake
16 lines
361 B
CMake
set(SOURCES
|
|
autoconf.c
|
|
../../cpu.h
|
|
../../cpu.c
|
|
)
|
|
|
|
add_executable(autoconf_app ${SOURCES})
|
|
target_link_libraries(autoconf_app unity)
|
|
|
|
include_directories(../..)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-strict-aliasing")
|
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
|
|
add_definitions(-DBUILD_TEST)
|
|
|
|
add_test(autoconf_test autoconf_app)
|