diff --git a/CMakeLists.txt b/CMakeLists.txt index ca4fa91..a13c183 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,6 @@ if(BUILD_SHARED_LIBS) add_definitions(-DBUILD_TICPP_DLL) endif(BUILD_SHARED_LIBS) -add_definitions(-DTIXML_USE_TICPP) add_library(ticpp ticpp.cpp tinystr.cpp @@ -16,3 +15,9 @@ add_library(ticpp tinyxmlerror.cpp tinyxmlparser.cpp ) +target_include_directories(ticpp + INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} +) +target_compile_definitions(ticpp + PUBLIC TIXML_USE_TICPP +)