#------------------------------------------------------------------- # 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 TUIO plugin ############################################################ PROJECT(sTuio) find_host_package(TUIO) # define header and source files for the library set (STUIO_HEADER_FILES include/sTuio.h ) if (Scol_STATIC) set (STUIO_HEADER_FILES ${STUIO_HEADER_FILES} include/loadScolStuio.h) endif() set (STUIO_SOURCE_FILES src/sTuio.cpp src/scolplugin.cpp ) scol_include_plugin("STUIO" "${PROJECT_SOURCE_DIR}/include" "loadScolStuio.h") # Add directories includes include_directories(include ${TUIO_INCLUDE_DIRS}) # Add definition for P4 optimizations, warnings removal. add_definitions(-DOPTI_P4 -D_CRT_SECURE_NO_WARNINGS -DTUIO_LIB_STATIC) if(WIN32) set(STUIO_LIBRARIES ${TUIO_LIBRARIES} mswsock winmm ws2_32 ) else() set(STUIO_LIBRARIES ${TUIO_LIBRARIES} pthread ) endif() # setup Scol plugin target add_library(sTuio ${Scol_LIB_TYPE} ${STUIO_HEADER_FILES} ${STUIO_SOURCE_FILES} ) add_dependencies(sTuio kernel) if (ANDROID) set(Scol_ANDROID_DEPENDENCIES ${Scol_ANDROID_DEPENDENCIES} sTuio 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(sTuio PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) target_link_libraries(sTuio ${STUIO_LIBRARIES}) # install Scol scol_config_plugin(sTuio) #install(FILES ${STUIO_HEADER_FILES} DESTINATION include/SCOL/plugins/sTuio)