#-------------------------------------------------------------------
# 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 androidDeployer
############################################################

#Your project name
PROJECT(androidDeployer)

# define header and source files for the library
set (ANDROIDDEPLOYER_HEADER_FILES
  include/androidDeployer.h
)

set (ANDROIDDEPLOYER_SOURCE_FILES
  src/androidDeployer.cpp
  src/scolplugin.cpp
)

scol_include_plugin("ANDROID_DEPLOYER" "${PROJECT_SOURCE_DIR}/include" "loadScolAndroidDeployer.h")

# Add includes directories from dependencies
if (NOT APPLE)
  include_directories(include ${ZLIB_INCLUDE_DIRS})
endif()
include_directories(include ${LIBZIP_INCLUDE_DIRS})

# Add definition for P4 optimizations, warnings removal.
if (WIN32)
  add_definitions(-DOPTI_P4 -D_CRT_SECURE_NO_WARNINGS -D)
endif()
#include_directories(include)

# Add dependencies libraries
set(LIBRARIES
   ${Boost_LIBRARIES}
   ${ZLIB_LIBRARY}
   ${LIBZIP_LIBRARIES}
)

# setup Scol plugin target
add_library(androidDeployer
  ${Scol_LIB_TYPE}
  ${ANDROIDDEPLOYER_HEADER_FILES}
  ${ANDROIDDEPLOYER_SOURCE_FILES}
)
add_dependencies(androidDeployer kernel)

# set the dll version.
#set_target_properties(androidDeployer PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR})
target_link_libraries(androidDeployer ${LIBRARIES})

# install Scol
scol_config_plugin(androidDeployer)
#install(FILES ${ANDROIDDEPLOYER_HEADER_FILES} DESTINATION include/SCOL/plugins/androidDeployer)