X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=095eff9366efa51e29816ae6be9befdbfa2843e6;hb=5316aea88898a23d42b50aff9d0cb56c3a3afa1d;hp=d13261f78b63294a0938dde49b0cafbdde263b84;hpb=35d9275085c88f2a2c8d8112a395f09f1a183fc3;p=FrontAlgorithms.git diff --git a/CMakeLists.txt b/CMakeLists.txt index d13261f..095eff9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,12 +28,15 @@ endforeach(_p) include(cmake/fpaBaseConfig.cmake) -## ============== -## == Find ITK == -## ============== +## ========================== +## == Find needed packages == +## ========================== -find_package(ITK CONFIG REQUIRED) -include(${ITK_USE_FILE}) +find_package(ivq CONFIG QUIET) +if(NOT ivq_FOUND) + find_package(ITK CONFIG REQUIRED) + include(${ITK_USE_FILE}) +endif(NOT ivq_FOUND) ## ========================= ## == Installation values == @@ -51,7 +54,7 @@ set(namespace "${PROJECT_NAME}::") ## == Build different parts == ## =========================== -subdirs(examples lib) +subdirs(lib tests) ## =============================== ## == Global installation rules ==