#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- ############################################################ # CmakeList file for sxml plugin ############################################################ PROJECT(sxml) # define header and source files for the library set (SXML_HEADER_FILES include/tinyxml2.h ) if (Scol_STATIC) set (SXML_HEADER_FILES ${SXML_HEADER_FILES} include/loadScolSxml.h) endif() set (SXML_SOURCE_FILES src/tinyxml2.cpp src/sXml.cpp ) scol_include_plugin("SXML" "${PROJECT_SOURCE_DIR}/include" "loadScolSxml.h") # Add directories includes include_directories(include) # Add definition for P4 optimizations, warnings removal. add_definitions(-D_CRT_SECURE_NO_WARNINGS) #set(LIBRARIES ) # setup Scol plugin target add_library(sxml ${Scol_LIB_TYPE} ${SXML_HEADER_FILES} ${SXML_SOURCE_FILES} ) add_dependencies(sxml kernel) if (ANDROID) set(Scol_ANDROID_DEPENDENCIES ${Scol_ANDROID_DEPENDENCIES} sxml CACHE INTERNAL "" FORCE) message(STATUS "[${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}] Scol_ANDROID_DEPENDENCIES: ${Scol_ANDROID_DEPENDENCIES} -- added sxml to android project deps") endif() # set the dll version. #set_target_properties(sxml PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) #target_link_libraries(sxml ${LIBRARIES}) # install Scol scol_config_plugin(sxml) #install(FILES ${SXML_HEADER_FILES} DESTINATION include/SCOL/plugins/sxml)