summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-01-18 10:43:05 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2018-01-29 13:50:31 -0500
commit7fcfb72dcdc03c34bded22348dfd4230cce61540 (patch)
treef97c19af95d402216905f77ffe22ca5f5d7e8d2c
parent0df7adb6804a13dd68a349eb5603b9def109f385 (diff)
cmake: keep sources and headers separate
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52a8f5e..cc1961d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,7 +28,7 @@ include(GNUInstallDirs)
mark_as_advanced(CLEAR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_INCLUDEDIR)
set(HEADERS src/pugixml.hpp src/pugiconfig.hpp)
-set(SOURCES ${HEADERS} src/pugixml.cpp)
+set(SOURCES src/pugixml.cpp)
if(DEFINED BUILD_DEFINES)
foreach(DEFINE ${BUILD_DEFINES})
@@ -37,9 +37,9 @@ if(DEFINED BUILD_DEFINES)
endif()
if(BUILD_SHARED_LIBS)
- add_library(pugixml SHARED ${SOURCES})
+ add_library(pugixml SHARED ${HEADERS} ${SOURCES})
else()
- add_library(pugixml STATIC ${SOURCES})
+ add_library(pugixml STATIC ${HEADERS} ${SOURCES})
endif()
# Export symbols for shared library builds