summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index 6304e97..0895d28 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -1,7 +1,9 @@
project(pugixml)
cmake_minimum_required(VERSION 2.6)
+
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared instead of static library")
+set(BUILD_DEFINES "" CACHE STRING "Build defines")
if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries")
@@ -10,6 +12,10 @@ endif()
set(HEADERS ../src/pugixml.hpp ../src/pugiconfig.hpp)
set(SOURCES ${HEADERS} ../src/pugixml.cpp)
+if(DEFINED BUILD_DEFINES)
+ add_definitions(${BUILD_DEFINES})
+endif()
+
if(BUILD_SHARED_LIBS)
add_library(pugixml SHARED ${SOURCES})
else()