mirror of
https://github.com/Andreabont/CppExperiments.git
synced 2024-09-19 15:23:05 +00:00
14 lines
372 B
CMake
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)
|