Blame view

src/CMakeLists.txt 433 Bytes
5b746131   Steven de Ridder   Initial commit.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  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()