]> Creatis software - cpPlugins.git/blobdiff - lib/CMakeLists.txt
itk-based LevelSet filters wrapped
[cpPlugins.git] / lib / CMakeLists.txt
index e22264656433090548ba477665e65bc5c5b73f63..bf5213eaed81aa4501e01df94f8bdbee9f43b951 100644 (file)
@@ -1,15 +1,13 @@
 
-## =====================
-## == Build instances ==
-## =====================
-
-SUBDIRS(Instances)
-
-## ===========================
-## == Third party libraries ==
-## ===========================
+## =========================
+## == Auxiliary libraries ==
+## =========================
 
 CompileLibFromDir(cp_tinyxml2 SHARED tinyxml2)
+CompileLibFromDir(cpExtensions SHARED cpExtensions)
+TARGET_LINK_LIBRARIES(
+  cpExtensions ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES}
+  )
 IF(USE_QT4)
   CompileLibFromDir(cp_QCustomPlot SHARED QCustomPlot)
   TARGET_LINK_LIBRARIES(cp_QCustomPlot ${QT_LIBRARIES})
@@ -26,31 +24,28 @@ ADD_CUSTOM_COMMAND(
   DEPENDS ${cpPlugins_bash_CreateRealConfig_APP}
   )
 CompileLibFromDir(
-  cpPlugins SHARED cpPlugins
+  cpPlugins SHARED
+  ${CMAKE_CURRENT_SOURCE_DIR}/cpPlugins
   ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h
   )
 TARGET_LINK_LIBRARIES(
   cpPlugins
   cp_tinyxml2
   ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES}
-  ${cpPlugins_Instances}
   )
 
 ## =====================
 ## == Other libraries ==
 ## =====================
 
-CompileLibFromDir(cpExtensions SHARED cpExtensions)
-TARGET_LINK_LIBRARIES(
-  cpExtensions
-  ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES}
-  )
+SUBDIRS(cpInstances)
+
 IF(USE_QT4)
   CompileLibFromDir(cpBaseQtApplication SHARED cpBaseQtApplication)
   TARGET_LINK_LIBRARIES(
     cpBaseQtApplication
-    cpPlugins cpExtensions
-  )
+    ${QT_LIBRARIES} cpExtensions cpPlugins
+    )
 ENDIF(USE_QT4)
 
 ## eof - $RCSfile$