#------------------------------------------------------------------- # 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 curl plugin ############################################################ PROJECT(spdf) # define header and source files for the library set (SPDF_HEADER_FILES include/sPdf.h ) if (Scol_STATIC) set (SPDF_HEADER_FILES ${SPDF_HEADER_FILES} include/loadScolSPdf.h) endif() set (SPDF_SOURCE_FILES src/sPdf.cpp src/scolplugin.cpp ) scol_include_plugin("SPDF" "${PROJECT_SOURCE_DIR}/include" "loadScolSPdf.h") # Add directories includes include_directories(include ${LibHaru_INCLUDE_DIRS}) # Add definition for P4 optimizations, warnings removal. add_definitions(-DOPTI_P4 -D_CRT_SECURE_NO_WARNINGS) set(LIBRARIES ${LibHaru_LIBRARIES} ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ) # setup Scol plugin target add_library(spdf ${Scol_LIB_TYPE} ${SPDF_HEADER_FILES} ${SPDF_SOURCE_FILES} ) add_dependencies(spdf kernel) if (ANDROID) set(Scol_ANDROID_DEPENDENCIES ${Scol_ANDROID_DEPENDENCIES} spdf CACHE INTERNAL "" FORCE) message(STATUS "[${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}] Scol_ANDROID_DEPENDENCIES: ${Scol_ANDROID_DEPENDENCIES} -- added serialio to android project deps") endif() # set the dll version. #set_target_properties(sPDF PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) target_link_libraries(spdf ${LIBRARIES}) # install Scol scol_config_plugin(spdf) #install(FILES ${SPDF_HEADER_FILES} DESTINATION include/SCOL/plugins/sPdf)