move build system to use conan cmake_find_package generator
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| cmake_minimum_required(VERSION 3.12) | ||||
| find_package(Boost COMPONENTS program_options REQUIRED) | ||||
| add_executable (simple_system  | ||||
|     plic.cpp | ||||
|     uart.cpp | ||||
| @@ -9,6 +10,9 @@ add_executable (simple_system | ||||
|     sc_main.cpp | ||||
| ) | ||||
| target_link_libraries (simple_system LINK_PUBLIC scc) | ||||
| target_link_libraries (simple_system LINK_PUBLIC ${Boost_LIBRARIES} ) | ||||
|  | ||||
| if(TARGET Boost::program_options) | ||||
| 	target_link_libraries(simple_system PUBLIC Boost::program_options) | ||||
| else() | ||||
| 	target_link_libraries(simple_system PUBLIC ${BOOST_program_options_LIBRARY}) | ||||
| endif() | ||||
| add_test(NAME simple_system_test COMMAND simple_system) | ||||
		Reference in New Issue
	
	Block a user