Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 88 lines (77 sloc) 2.707 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
# Copyright (c) 2010 Daniel Pfeifer <daniel@pfeifer-mail.de>

include(ParseArguments)
include(PurpleInstallPDB)
include(PurpleExpandLibraries)

macro(EQ_ADD_TOOL NAME)
  parse_arguments(THIS "SOURCES;HEADERS;LINK_LIBRARIES" "" ${ARGN})
  set(THIS_TARGET ${NAME})
  source_group(\\ FILES ${THIS_SOURCES} ${THIS_HEADERS})
  add_executable(${THIS_TARGET} ${THIS_SOURCES} ${THIS_HEADERS})
  purple_expand_libraries(LINK_LIBRARIES ${THIS_LINK_LIBRARIES})
  target_link_libraries(${THIS_TARGET} ${LINK_LIBRARIES})
  set_target_properties(${THIS_TARGET} PROPERTIES OUTPUT_NAME ${NAME} FOLDER "Tools")
  install(TARGETS ${THIS_TARGET} DESTINATION bin COMPONENT tools)
  purple_install_pdb(${THIS_TARGET} DESTINATION bin COMPONENT tools)
endmacro(EQ_ADD_TOOL NAME)

include_directories(${CMAKE_SOURCE_DIR}/examples/include
  ${CMAKE_SOURCE_DIR}/examples/eqPly)
add_definitions(-DEQ_SYSTEM_INCLUDES) # get GL headers

if(GLEW_MX_FOUND)
  include_directories(BEFORE SYSTEM ${GLEW_MX_INCLUDE_DIRS})
  set(GLEW_LIBRARY ${GLEW_MX_LIBRARIES})
else()
  set(GLEW_LIBRARY "GLEW_MX-Equalizer")
  add_definitions(-DGLEW_STATIC=1 -DGLEW_MX=1)
endif()

if(GPUSD_FOUND)
  add_definitions(-DEQ_USE_GPUSD)
endif()

if(WIN32)
  eq_add_tool(affinityCheck
    SOURCES affinityCheck/affinityCheck.cpp
    LINK_LIBRARIES ${GLEW_LIBRARY} ${OPENGL_gl_LIBRARY}
    )
endif(WIN32)

eq_add_tool(eqConfigTool
  HEADERS configTool/configTool.h configTool/frame.h
  SOURCES configTool/configTool.cpp configTool/writeFromFile.cpp
  LINK_LIBRARIES shared Equalizer shared EqualizerServer
  )

eq_add_tool(eqPlyConverter
  HEADERS
    ../examples/eqPly/ply.h
    ../examples/eqPly/vertexBufferBase.h
    ../examples/eqPly/vertexBufferData.h
    ../examples/eqPly/vertexBufferLeaf.h
    ../examples/eqPly/vertexBufferNode.h
    ../examples/eqPly/vertexBufferRoot.h
    ../examples/eqPly/vertexBufferState.h
    ../examples/eqPly/vertexData.h
  SOURCES eqPlyConverter/main.cpp
    ../examples/eqPly/plyfile.cpp
    ../examples/eqPly/vertexBufferBase.cpp
    ../examples/eqPly/vertexBufferLeaf.cpp
    ../examples/eqPly/vertexBufferNode.cpp
    ../examples/eqPly/vertexBufferRoot.cpp
    ../examples/eqPly/vertexBufferState.cpp
    ../examples/eqPly/vertexData.cpp
  LINK_LIBRARIES shared Equalizer
  )

eq_add_tool(eVolveConverter
  HEADERS
    eVolveConverter/codebase.h
    eVolveConverter/ddsbase.h
    eVolveConverter/eVolveConverter.h
    eVolveConverter/hlp.h
  SOURCES
    eVolveConverter/eVolveConverter.cpp
    eVolveConverter/ddsbase.cpp
  )

eq_add_tool(eqWindowAdmin
  SOURCES windowAdmin/main.cpp
  LINK_LIBRARIES shared EqualizerAdmin
  )

eq_add_tool(eqServer
  SOURCES server/eqServer.cpp
  LINK_LIBRARIES shared EqualizerServer
  )
Something went wrong with that request. Please try again.