cmake_minimum_required(VERSION 3.4) project(pugixml VERSION 1.11 LANGUAGES CXX) LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/pugiconfig.h ${CMAKE_CURRENT_SOURCE_DIR}/pugixml.h ${CMAKE_CURRENT_SOURCE_DIR}/pugixml.cpp ) include(library) add_libraries() include(installation) install_component()