Advertisement
postb99

Hello ITK CMake

Mar 7th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8.8)
  2.  
  3. project(HelloItk)
  4.  
  5. # Manually indicate itk location as install dir
  6. # SET(ITK_DIR $ENV{ITK})
  7. # Automatic detection finds source/build dirs
  8. find_package(ITK REQUIRED)
  9.  
  10.  
  11.  
  12. include(${ITK_USE_FILE})
  13.  
  14. #file(
  15. # GLOB_RECURSE
  16. # source_files
  17. # ../HelloItk/*
  18. #)
  19.  
  20. # executable then list of files
  21. add_executable(
  22. HelloItk
  23. #${source_files}
  24. main.cpp
  25. )
  26. target_link_libraries(HelloItk ${ITK_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement