mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-19 02:21:04 +00:00
17 lines
361 B
Text
17 lines
361 B
Text
|
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)
|