Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CamiTK
CamiTK Community Edition
Commits
0608e9ea
Commit
0608e9ea
authored
Mar 25, 2016
by
saubatn
Browse files
UPDATED Increase CMake ITK & VTK finding libraries documentation.
parent
f8e01e7f
Changes
4
Hide whitespace changes
Inline
Side-by-side
sdk/cmake/modules/CamiTKConfig.cmake.in
View file @
0608e9ea
...
...
@@ -133,8 +133,6 @@ set(CAMITK_INCLUDE_DIRECTORIES
# postfix for MSVC debug version
set(CAMITK_DEBUG_POSTFIX "-debug")
# basic list of all lib needed for linking with CamiTK core
if(MSVC)
# name of the camitk core lib
...
...
@@ -143,6 +141,7 @@ if(MSVC)
)
# Construct list of VTK libraries for linking
# CAMITK_VTK_LIBRARIES = VTK input libraries at linkage
foreach(VTK_LIBRARY ${VTK_LIBRARIES})
# Clear some errors on VTK configuration
# rename correctly verdict -> vtkverdict library
...
...
@@ -168,7 +167,7 @@ else()
# list of all core dependencies
set(CAMITK_LIBRARIES
${VTK_LIBRARIES}
${VTK_LIBRARIES}
# no need to add more libraries in the list, CMake & VTK handle it correclty on Linux & Apple
# QVTK
qtpropertybrowser
)
...
...
sdk/cmake/modules/macros/camitk/CamiTKApplication.cmake
View file @
0608e9ea
...
...
@@ -207,9 +207,10 @@ macro(camitk_application)
if
((
${
ITK_VERSION
}
VERSION_GREATER
"4"
)
AND
(
${
ITK_VERSION
}
VERSION_LESS
"5"
))
# ITK 4.9 on Windows, maybe a lesser version for Linux.
if
(
MSVC
)
set
(
ITK_DIR
${
ITK_DIR
}
/../..
)
# Construct list of ITK libraries for linking
# Construct list of ITK libraries for linking
= CAMITK_ITK_LIBRARIES
foreach
(
ITK_LIBRARY
${
ITK_LIBRARIES
}
)
string
(
SUBSTRING
${
ITK_LIBRARY
}
0 3
${
ITK_LIBRARY
}
_PREFIX
)
# Some libraries have not the expected 'itk' prefix. Add it then
if
((
NOT
${${
ITK_LIBRARY
}
_PREFIX
}
STREQUAL
"itk"
)
AND
(
NOT
${${
ITK_LIBRARY
}
_PREFIX
}
STREQUAL
"ITK"
))
set
(
ITK_LIBRARY itk
${
ITK_LIBRARY
}
)
endif
()
...
...
sdk/cmake/modules/macros/camitk/CamiTKExtension.cmake
View file @
0608e9ea
...
...
@@ -218,9 +218,10 @@ macro(camitk_extension)
if
((
${
ITK_VERSION
}
VERSION_GREATER
"4"
)
AND
(
${
ITK_VERSION
}
VERSION_LESS
"5"
))
# ITK 4.9 on Windows, maybe a lesser version for Linux.
if
(
MSVC
)
set
(
ITK_DIR
${
ITK_DIR
}
/../..
)
# Construct list of ITK libraries for linking
# Construct list of ITK libraries for linking
= CAMITK_ITK_LIBRARIES
foreach
(
ITK_LIBRARY
${
ITK_LIBRARIES
}
)
string
(
SUBSTRING
${
ITK_LIBRARY
}
0 3
${
ITK_LIBRARY
}
_PREFIX
)
# Some libraries have not the expected 'itk' prefix. Add it then
if
((
NOT
${${
ITK_LIBRARY
}
_PREFIX
}
STREQUAL
"itk"
)
AND
(
NOT
${${
ITK_LIBRARY
}
_PREFIX
}
STREQUAL
"ITK"
))
set
(
ITK_LIBRARY itk
${
ITK_LIBRARY
}
)
endif
()
...
...
sdk/cmake/modules/macros/camitk/CamiTKLibrary.cmake
View file @
0608e9ea
...
...
@@ -184,9 +184,10 @@ macro(camitk_library)
if
((
${
ITK_VERSION
}
VERSION_GREATER
"4"
)
AND
(
${
ITK_VERSION
}
VERSION_LESS
"5"
))
# ITK 4.9 on Windows, maybe a lesser version for Linux.
if
(
MSVC
)
set
(
ITK_DIR
${
ITK_DIR
}
/../..
)
# Construct list of ITK libraries for linking
# Construct list of ITK libraries for linking
= CAMITK_ITK_LIBRARIES
foreach
(
ITK_LIBRARY
${
ITK_LIBRARIES
}
)
string
(
SUBSTRING
${
ITK_LIBRARY
}
0 3
${
ITK_LIBRARY
}
_PREFIX
)
# Some libraries have not the expected 'itk' prefix. Add it then
if
((
NOT
${${
ITK_LIBRARY
}
_PREFIX
}
STREQUAL
"itk"
)
AND
(
NOT
${${
ITK_LIBRARY
}
_PREFIX
}
STREQUAL
"ITK"
))
set
(
ITK_LIBRARY itk
${
ITK_LIBRARY
}
)
endif
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment