CppExperiments/Eratostene/CMakeLists.txt
Andrea Bontempi 8a1f664443 Init
2021-10-21 15:00:01 +02:00

14 lines
372 B
CMake

cmake_minimum_required(VERSION 2.6)
project(rangeiterator)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_executable(eratostene main.cpp eratostene.cpp eratostene.h)
set(BOOST_LIBS program_options)
find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED)
target_link_libraries(eratostene ${Boost_LIBRARIES})
install(TARGETS eratostene RUNTIME DESTINATION bin)