Advertisement
Guest User

CMakeLists.txt

a guest
Aug 10th, 2016
130
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None
  1. CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
  2.  
  3. PROJECT(TBI_APP)
  4.  
  5. IF(COMMAND CMAKE_POLICY)
  6. CMAKE_POLICY(SET CMP0003 NEW)
  7. ENDIF(COMMAND CMAKE_POLICY)
  8.  
  9. FIND_PACKAGE (VTK REQUIRED)
  10. IF (VTK_FOUND)
  11. INCLUDE( ${VTK_USE_FILE} )
  12. INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
  13. ENDIF(VTK_FOUND)
  14. ## ITK
  15. ##
  16. FIND_PACKAGE (ITK REQUIRED)
  17. IF (ITK_FOUND)
  18. INCLUDE( ${ITK_USE_FILE} )
  19. INCLUDE_DIRECTORIES(${ITK_INCLUDE_DIRS})
  20. ENDIF(ITK_FOUND)
  21.  
  22.  
  23. ## Path para incluir mis filtros
  24. SET( Filters_DIR ${CMAKE_SOURCE_DIR}/Sources/Filters)
  25. SET( GUI_DIR ${CMAKE_SOURCE_DIR}/Sources/GUI)
  26. SET( MAIN_DIR ${TBI_APP_SOURCE_DIR}/Sources/GUI/tbi_app/)
  27.  
  28. SET(TINY_DIR /home/rafa/Desarrollo/itk/Utiles/tinyXml/)
  29. SET(Tiny_SRCS ${TINY_DIR}/tinyxml.cpp ${TINY_DIR}/tinyxmlparser.cpp ${TINY_DIR}/tinyxmlerror.cpp ${TINY_DIR}/tinystr.cpp)
  30.  
  31. ## QT 4
  32. ##
  33. FIND_PACKAGE(Qt4 REQUIRED)
  34. INCLUDE(${QT_USE_FILE})
  35.  
  36. INCLUDE_DIRECTORIES(
  37. ${QT_INCLUDE_DIR}
  38. ${TBI_APP_SOURCE_DIR}
  39. ${TBI_APP_BINARY_DIR}
  40. ${Filters_DIR}
  41. ${GUI_DIR}
  42. ${TINY_DIR}
  43. )
  44.  
  45. ADD_DEFINITIONS(${QT_DEFINITIONS})
  46.  
  47. SET(TBI_APP_SRCS
  48. ${MAIN_DIR}/main.cpp
  49. ${MAIN_DIR}/tbi_gui.cpp
  50. ${MAIN_DIR}/processing.cpp
  51. ${MAIN_DIR}/Connector.cpp
  52. ${MAIN_DIR}/run.cpp
  53. ${MAIN_DIR}/visualization.cpp
  54. )
  55.  
  56. SET(TBI_APP_HDRS
  57. ${MAIN_DIR}/tbi_gui.h
  58. ${MAIN_DIR}/processing.h
  59. ${MAIN_DIR}/Connector.h
  60. ${MAIN_DIR}/run.h
  61. ${MAIN_DIR}/visualization.h
  62. )
  63.  
  64. SET(TBI_APP_UIS
  65. ${MAIN_DIR}/tbi_gui.ui
  66. # visualizationdialog.ui
  67. # snaketune.ui
  68. # gvfsnaketune.ui
  69. # gvfesnake.ui
  70. # diceui.ui
  71. # esferas.ui
  72. # circulos.ui
  73. )
  74.  
  75. SET(TBI_APP_RESOURCES Imagenes.qrc)
  76.  
  77. QT4_WRAP_CPP(TBI_APP_HEADERS_MOC ${TBI_APP_HDRS})
  78. QT4_AUTOMOC(${TBI_APP_SRCS})
  79. QT4_WRAP_UI(TBI_APP_UIS_H ${TBI_APP_UIS} )
  80. QT4_ADD_RESOURCES(TBI_APP_RESOURCES_RCC ${TBI_APP_RESOURCES})
  81. ##
  82.  
  83.  
  84. # Don't forget to include output directory, otherwise
  85. # the UI file won't be wrapped!
  86. INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
  87.  
  88. # ADD_LIBRARY(Triangulos
  89. # ${CMAKE_SOURCE_DIR}/../include/Triangulos.cxx
  90. # )
  91.  
  92. #add_library(XML ${Tiny_SRCS})
  93.  
  94. ADD_EXECUTABLE(TBI_APP
  95. ${TBI_APP_SRCS}
  96. ${TBI_APP_UIS_H}
  97. ${TBI_APP_RESOURCES_RCC}
  98. ${TBI_APP_HEADERS_MOC}
  99. ${EXTRAS_CPP}
  100. )
  101.  
  102.  
  103. TARGET_LINK_LIBRARIES(TBI_APP
  104. ${ITK_LIBRARIES}
  105. ${VTK_LIBRARIES}
  106. ${QT_LIBRARIES}
  107. QVTK
  108. #XML
  109. )
Advertisement
RAW Paste Data Copied
Advertisement