X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FCMakeLists.txt;h=4dcf32530b2d6ab661d0420b543f248d50de8ec1;hb=bec6f659babc742382ca007b53800e7305fa298f;hp=380ce41d5c40f3afd9d6224af5202b86cc7d0b63;hpb=14678a46d28327b25957a1efc59f0c29d2a83564;p=clitk.git diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 380ce41..4dcf325 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -1,7 +1,3 @@ -#========================================================= -INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake) -#========================================================= - #========================================================= # make clitk libraries* CONFIGURE_FILE(clitkConfiguration.h.in ${PROJECT_BINARY_DIR}/clitkConfiguration.h) @@ -13,6 +9,8 @@ SET(clitkCommon_SRC clitkImageCommon.cxx clitkTransformUtilities.cxx clitkIO.cxx + clitkGateAsciiImageIO.cxx + clitkGateAsciiImageIOFactory.cxx clitkVoxImageIO.cxx clitkVoxImageIOFactory.cxx clitkVfImageIO.cxx @@ -35,14 +33,12 @@ SET(clitkCommon_SRC vvImageReader.cxx vvImageWriter.cxx ) - -IF(UNIX) - SET(clitkCommon_SRC - ${clitkCommon_SRC} - clitkGateAsciiImageIO.cxx - clitkGateAsciiImageIOFactory.cxx - ) -ENDIF(UNIX) +IF(CLITK_PRIVATE_FEATURES) + SET(clitkCommon_SRC ${clitkCommon_SRC} + ${PROJECT_SOURCE_DIR}/private_features/clitkUsfImageIO.cxx + ${PROJECT_SOURCE_DIR}/private_features/clitkUsfImageIOFactory.cxx + ) +ENDIF(CLITK_PRIVATE_FEATURES) ### Declare clitkCommon library ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC})