mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-19 02:10:34 +01:00
16 lines
401 B
CMake
16 lines
401 B
CMake
cmake_minimum_required(VERSION 3.1.0)
|
|
|
|
project(fnd CXX)
|
|
|
|
find_package(Boost 1.54 REQUIRED COMPONENTS system filesystem)
|
|
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})
|
|
|
|
target_compile_features(fnd PRIVATE cxx_range_for)
|
|
|
|
target_link_libraries(fnd ${Boost_LIBRARIES})
|