move build system to use conan cmake_find_package generator
This commit is contained in:
@ -1,8 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
find_package(Boost COMPONENTS program_options REQUIRED)
|
||||
add_executable (ordered_sem
|
||||
sc_main.cpp
|
||||
)
|
||||
target_link_libraries (ordered_sem LINK_PUBLIC scc)
|
||||
target_link_libraries (ordered_sem LINK_PUBLIC ${Boost_LIBRARIES} )
|
||||
if(TARGET Boost::program_options)
|
||||
target_link_libraries(ordered_sem PUBLIC Boost::program_options)
|
||||
else()
|
||||
target_link_libraries(ordered_sem LINK_PUBLIC ${BOOST_program_options_LIBRARY})
|
||||
endif()
|
||||
|
||||
add_test(NAME ordered_sem_test COMMAND ordered_sem)
|
@ -1,4 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
find_package(fmt)
|
||||
find_package(Boost COMPONENTS program_options REQUIRED)
|
||||
add_executable (sim_performance
|
||||
sc_main.cpp
|
||||
pkt_sender.cpp
|
||||
@ -6,11 +8,16 @@ add_executable (sim_performance
|
||||
top.cpp
|
||||
)
|
||||
target_link_libraries (sim_performance LINK_PUBLIC scc)
|
||||
target_link_libraries (sim_performance LINK_PUBLIC ${Boost_LIBRARIES} )
|
||||
target_link_libraries (sim_performance LINK_PUBLIC scc fmt::fmt)
|
||||
if(TARGET Boost::program_options)
|
||||
target_link_libraries(sim_performance PUBLIC Boost::program_options)
|
||||
else()
|
||||
target_link_libraries(sim_performance PUBLIC ${BOOST_program_options_LIBRARY})
|
||||
endif()
|
||||
|
||||
#Mateo Done erst count 16384
|
||||
foreach(x RANGE 1 10)
|
||||
add_test(NAME sim_performance_16x16_${x} COMMAND sim_performance)
|
||||
add_test(NAME sim_performance_16x16_${x} COMMAND sim_performance --dim 32 --count 50000)
|
||||
add_test(NAME sim_performance_16x16_${x} COMMAND sim_performance --dim 64 --count 100000)
|
||||
endforeach()
|
||||
add_test(NAME sim_performance_32x32_${x} COMMAND sim_performance --dim 32 --count 50000)
|
||||
add_test(NAME sim_performance_64x64_${x} COMMAND sim_performance --dim 64 --count 100000)
|
||||
endforeach()
|
||||
|
Reference in New Issue
Block a user