]> SALOME platform Git repositories - modules/shaper.git/blobdiff - CMakeCommon/FindSalome.cmake
Salome HOME
Migration to VC9 and boost::shared_ptr with connection to SALOME
[modules/shaper.git] / CMakeCommon / FindSalome.cmake
diff --git a/CMakeCommon/FindSalome.cmake b/CMakeCommon/FindSalome.cmake
new file mode 100644 (file)
index 0000000..bf82cde
--- /dev/null
@@ -0,0 +1,12 @@
+
+
+SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI directory")
+IF(EXISTS ${GUI_ROOT_DIR})
+       SET(HAVE_SALOME YES)
+  
+       FIND_LIBRARY(LightApp LightApp ${GUI_ROOT_DIR}/lib/salome)
+       FIND_LIBRARY(OCCViewer OCCViewer ${GUI_ROOT_DIR}/lib/salome)
+  
+       SET(SALOME_GUI_INCLUDE ${GUI_ROOT_DIR}/include/salome)
+       ADD_DEFINITIONS( -DHAVE_SALOME )
+ENDIF(EXISTS ${GUI_ROOT_DIR})