Notice: If you are member of any public project or group, please make sure that your GitLab username is not the same as the LRZ identifier/Kennung (see https://gitlab.lrz.de/profile/account). Please change your username if necessary. For more information see the section "Public projects / Öffentliche Projekte" at https://doku.lrz.de/display/PUBLIC/GitLab . Thank you!

Commit ce377bcc authored by Jakob Weiss's avatar Jakob Weiss

cmake draft for a perftest module

parent 079e0bb3
# modules/perftest/perftest.cmake
# CMake file for the perftest module
# Set module status (valid values are STABLE, TESTING and EXPERIMENTAL)
SET(ThisModStatus TESTING)
# Set whether this module has external dependencies that are not shipped with CAMPVis.
SET(ThisModExternalDependencies TRUE)
# The files and assignments need only to be parsed if the module is enabled
IF(ModuleEnabled)
FIND_PACKAGE(OpenCV REQUIRED)
IF(OpenCV_FOUND)
# Source files:
FILE(GLOB ThisModSources RELATIVE ${ModulesDir}
modules/perftest/pipelines/*.cpp
modules/perftest/processors/*.cpp
modules/perftest/datastructures/*.cpp
modules/perftest/*.cpp
)
# Header files (including GLSL files so that they'll appear in VS projects)
FILE(GLOB ThisModHeaders RELATIVE ${ModulesDir}
modules/perftest/glsl/*.frag
modules/perftest/glsl/*.geom
modules/perftest/glsl/*.vert
modules/perftest/pipelines/*.h
modules/perftest/processors/*.h
modules/perftest/datastructures/*.h
)
# Define the GLSL shader path, so that all needed shaders will be deployed to target directory
#SET(ThisModShaderDirectories "modules/perftest/glsl")
# Define dependency modules (the pipelines in the vis modules use processors from io)
#SET(ThisModDependencies io)
LIST(APPEND ThisModIncludeDirs ${OpenCV_INCLUDE_DIRS})
LIST(APPEND ThisModExternalLibs ${OpenCV_LIBS})
LIST(APPEND ThisModLinkDirectories ${OpenCV_LIB_DIR})
LIST(APPEND ThisModExternalDllsDebug "${OpenCV_LIB_DIR}/../bin/opencv_world310d.dll")
LIST(APPEND ThisModExternalDllsRelease "${OpenCV_LIB_DIR}/../bin/opencv_world310.dll")
ELSE()
MESSAGE(FATAL_ERROR "Could not find OpenIGTLink. Please specify OpenIGTLink_DIR.")
ENDIF()
ENDIF(ModuleEnabled)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment