SET( BOOST_INCLUDES $ENV{BOOST_ROOT_DIR}/include/boost-1_52 )
SET( CPPUNIT_INCLUDES $ENV{CPPUNIT_ROOT_DIR}/include )
-SET( QT_INCLUDES $ENV{QT_ROOT_DIR}/include $ENV{QT_ROOT_DIR}/include/QtCore $ENV{QT_ROOT_DIR}/include/QtGui )
+SET( CAS_INCLUDES $ENV{CASROOT_DIR}/inc )
+SET( QT_INCLUDES $ENV{QT4_ROOT_DIR}/include $ENV{QT4_ROOT_DIR}/include/QtCore $ENV{QT4_ROOT_DIR}/include/QtGui )
SET( GUI_INCLUDES $ENV{GUI_ROOT_DIR}/include/salome )
-link_directories( $ENV{CAS_ROOT_DIR}/win32/libd ) #TODO: more correct for release, linux etc
+IF( ${WIN32} )
+ link_directories( $ENV{CAS_ROOT_DIR}/win32/libd )
+ELSE()
+ link_directories( $ENV{CAS_ROOT_DIR}/lib )
+ENDIF()
SET( CAS_LIBRARIES TKernel TKLCAF TKCAF TKCDF TKMath TKG2d TKG3d TKBRep TKGeomBase TKTopAlgo TKGeomAlgo TKBool TKShHealing TKXSBase TKOffset TKHLR TKBO TKV3d )
-link_directories( $ENV{QT_ROOT_DIR}/lib )
-SET( QT_LIBRARIES QtCored4 QtGuid4 )
+link_directories( $ENV{QT4_ROOT_DIR}/lib )
+IF( ${WIN32} )
+ SET( QT_LIBRARIES QtCored4 QtGuid4 )
+ELSE()
+ SET( QT_LIBRARIES QtCore QtGui )
+ENDIF()
link_directories( $ENV{CPPUNIT_ROOT_DIR}/lib )
-SET( CPPUNIT_LIBRARIES cppunitd )
+IF( ${WIN32} )
+ SET( CPPUNIT_LIBRARIES cppunitd )
+ELSE()
+ SET( CPPUNIT_LIBRARIES cppunit )
+ENDIF()
link_directories( $ENV{GUI_ROOT_DIR}/lib/salome )
-SET( GUI_LIBRARIES ImageComposer Qtx SUIT LightApp CAM OCCViewer )
+SET( GUI_LIBRARIES ImageComposer qtx suit LightApp CAM OCCViewer )
include_directories(
${BOOST_INCLUDES}