2017-12-19 15:30:15 +00:00
|
|
|
|
2018-04-04 13:34:10 +00:00
|
|
|
set(od_stress_binary odyssey_stress)
|
|
|
|
set(od_stress_src odyssey_stress.c)
|
2017-12-19 15:30:15 +00:00
|
|
|
|
|
|
|
include_directories("${PROJECT_SOURCE_DIR}/")
|
|
|
|
include_directories("${PROJECT_BINARY_DIR}/")
|
|
|
|
|
|
|
|
add_executable(${od_stress_binary} ${od_stress_src})
|
|
|
|
add_dependencies(${od_stress_binary} build_libs)
|
|
|
|
|
|
|
|
if(THREADS_HAVE_PTHREAD_ARG)
|
|
|
|
set_property(TARGET ${od_stress_binary} PROPERTY COMPILE_OPTIONS "-pthread")
|
|
|
|
set_property(TARGET ${od_stress_binary} PROPERTY INTERFACE_COMPILE_OPTIONS "-pthread")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_link_libraries(${od_stress_binary} ${od_libraries} ${CMAKE_THREAD_LIBS_INIT})
|