2017-05-09 21:28:16 +00:00
|
|
|
cmake_minimum_required(VERSION 3.1.0)
|
|
|
|
|
|
|
|
project(fnd CXX)
|
|
|
|
|
2017-05-10 07:56:25 +00:00
|
|
|
find_package(Boost 1.54 REQUIRED COMPONENTS system filesystem)
|
2017-05-09 21:28:16 +00:00
|
|
|
include_directories( ${Boost_INCLUDE_DIR} )
|
|
|
|
|
|
|
|
file(GLOB SOURCES "src/*.cpp")
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
|
|
|
|
|
|
|
|
add_executable(fnd ${SOURCES})
|
|
|
|
|
2017-05-10 07:56:25 +00:00
|
|
|
target_compile_features(fnd PRIVATE cxx_range_for)
|
|
|
|
|
2017-05-09 21:28:16 +00:00
|
|
|
target_link_libraries(fnd ${Boost_LIBRARIES})
|
2017-05-10 07:59:02 +00:00
|
|
|
|
|
|
|
install(TARGETS fnd DESTINATION bin)
|