]> Creatis software - clitk.git/commitdiff
windows compatibility for tools
authormpech <maxime.pech@insa-lyon.fr>
Tue, 14 Jun 2011 11:26:15 +0000 (13:26 +0200)
committermpech <maxime.pech@insa-lyon.fr>
Tue, 14 Jun 2011 11:26:15 +0000 (13:26 +0200)
 (size_t vs uint...)
and tests (.lib vs .a)

tests/CMakeLists.txt
tests/vv/CMakeLists.txt
tools/clitkImageExtractLine.cxx

index bc9beae3f91d5f5ccad2def356d1c46e675d87e7..d4deb7594831725a861d7912cf5dd76188bfda01 100644 (file)
@@ -19,10 +19,12 @@ ADD_DEFINITIONS(-DCLITK_DATA_PATH=\"${CLITK_DATA_PATH}\")
 
 add_library(gtest UNKNOWN IMPORTED)
 set(GTEST_DIR ${ITK_DIR}/../gtest/ CACHE STRING "gtestDir")
-#if windows gtestLibName=gtest.dll else libgtest.a
-set(gtestLibName libgtest.a)
+if(WIN32)
+  SET(gtestLibName gtest.lib)
+else(UNIX)
+  SET(gtestLibName libgtest.a)
+endif(WIN32)
 set(GTEST_LIB ${GTEST_DIR}/build/${gtestLibName})
-#message(gtestlib name = ${GTEST_LIB})
 set_property(TARGET gtest PROPERTY IMPORTED_LOCATION "${GTEST_LIB}")
 include_directories(${GTEST_DIR}/include/)
 
@@ -32,8 +34,13 @@ ENDIF()
 IF(CLITK_BUILD_VV)
   ADD_SUBDIRECTORY(vv)
 ENDIF()
+# IF(CLITK_BUILD_SEGMENTATION)
 #   ADD_SUBDIRECTORY(segmentation)
+# ENDIF()
+# 
+# IF(CLITK_BUILD_REGISTATION)
 #   ADD_SUBDIRECTORY(registration)
-#   ADD_SUBDIRECTORY(common)
+# ENDIF()
+#ADD_SUBDIRECTORY(common)
 
 
index 24e1d3a9c0f2381714192bff1075ef2d9d5f5823..3707d77fe5a92336d862613ea51b2e28d5c1b411 100644 (file)
@@ -1,18 +1,16 @@
 include_directories(
   ${PROJECT_SOURCE_DIR}/vv
   ${PROJECT_BINARY_DIR}/vv
-  ${QT_INCLUDES}
-  ${QT_INCLUDE_DIR}
   ${QT_QTGUI_INCLUDE_DIR}
   ${QT_QTCORE_INCLUDE_DIR}
   ${QT_QTNETWORK_INCLUDE_DIR}
+  ${QT_QTCORE_INCLUDE_DIR}/../
   ${PROJECT_SOURCE_DIR}/common
   ${PROJECT_SOURCE_DIR}/tools
   ${PROJECT_SOURCE_DIR}/segmentation
   ${QT_LIBRARY_DIR}
   ${GTEST_DIR}/include
 )
-
 FILE(GLOB srcs *.cxx)
 ADD_EXECUTABLE(vvTest ${srcs})
 target_link_libraries(vvTest vvLib gtest)
index b46a5d06a97724d660f82be9d3ca387f1c50b5ef..3d59bf57882f0f502a0d05fe3a065c12d789fe29 100644 (file)
@@ -137,7 +137,7 @@ int main(int argc, char * argv[])
       DD(direction);
       
       std::vector<double> val(dim[b]);
-       for (uint i=0; i<dim[b]; i++)
+       for (size_t i=0; i<dim[b]; i++)
          val[i]=0;
        
       int k;