cmake_minimum_required(VERSION 3.6.1) #this is the my current development version, it could probably be lower. Project(configpp) find_package(Boost COMPONENTS filesystem REQUIRED) add_library(configpp SHARED configpp.hpp configpp.cpp ) target_include_directories(configpp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ) target_link_libraries(configpp PRIVATE Boost::boost PRIVATE Boost::filesystem ) target_compile_options(configpp PUBLIC -std=c++14 ) enable_testing() add_subdirectory(tests)