cmake_minimum_required(VERSION 3.5) project (yamlprovider) set(CMAKE_POSITION_INDEPENDENT_CODE ON) file(GLOB sources "src/*.cpp") add_library(yamlprovider SHARED ${sources}) generate_export_header(yamlprovider) target_link_libraries(yamlprovider INTERFACE yaml-cpp) target_include_directories( yamlprovider PUBLIC ../third-party/yaml-cpp/include/yaml-cpp ../third-party/yaml-cpp/include PUBLIC include/ ../geoworld/include/ )