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/)
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)
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)