#------------------------------------------------------------------- # 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. #------------------------------------------------------------------- ############################################################ # Emotiv plugin CMakeList ############################################################ PROJECT(emotiv) # define header and source files for the library set (EMOTIV_HEADER_FILES include/emotiv.h include/plugin.h ) if (Scol_STATIC) set (EMOTIV_HEADER_FILES ${EMOTIV_HEADER_FILES} include/loadScolEmotiv.h) endif() set (EMOTIV_SOURCE_FILES src/Emotiv.cpp src/plugin.cpp ) scol_include_plugin("EMOTIV" "${PROJECT_SOURCE_DIR}/include" "loadScolEmotiv.h") # Add directories includes include_directories(include ${EMOTIV_INCLUDE_DIRS}) # Add definition for P4 optimizations, warnings removal. add_definitions(-DOPTI_P4 -D_CRT_SECURE_NO_WARNINGS) set(LIBRARIES ${EMOTIV_LIBRARIES}) # setup Scol emotiv plugin target add_library(emotiv ${Scol_LIB_TYPE} ${EMOTIV_HEADER_FILES} ${EMOTIV_SOURCE_FILES} ) add_dependencies(emotiv kernel) # set the dll version. #set_target_properties(emotiv PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) target_link_libraries(emotiv ${LIBRARIES}) # install Scol emotiv scol_config_plugin(emotiv) #install(FILES ${EMOTIV_HEADER_FILES} DESTINATION include/SCOL/plugins/emotiv)