Medical Imaging Interaction Toolkit  2018.4.99-bd7b41ba
Medical Imaging Interaction Toolkit
mitkFunctionConfigureVisualStudioUserProjectFile.cmake
Go to the documentation of this file.
1 #!
2 #! Configure user file for visual studio projects
3 #!
4 #! \brief This function will configure a user file for visual studio projects
5 #!
6 #! \param NAME (required) Name of the executable
7 #!
8 #! \code
9 #! mitkFunctionConfigureVisualStudioUserProjectFile(
10 #! NAME MyApp
11 #! )
12 #! \endcode
13 #!
14 
16 
17  set(_function_params
18  NAME # Name of the executable
19  )
20 
21  set(_function_multiparams
22  )
23 
24  set(_function_options
25 
26  )
27 
28  cmake_parse_arguments(VSUPF "${_function_options}" "${_function_params}" "${_function_multiparams}" ${ARGN})
29 
30  SET(VS_BUILD_TYPE_DEB debug)
31  SET(VS_BUILD_TYPE_REL release)
32  SET(VS_BUILD_TYPE_RELDEB relwithdebinfo)
33 
34  mitkFunctionGetLibrarySearchPaths(MITK_RUNTIME_PATH_DEB ${VS_BUILD_TYPE_DEB} DEBUG)
35  mitkFunctionGetLibrarySearchPaths(MITK_RUNTIME_PATH_REL ${VS_BUILD_TYPE_REL} RELEASE)
36  mitkFunctionGetLibrarySearchPaths(MITK_RUNTIME_PATH_RELWITHDEBINFO ${VS_BUILD_TYPE_RELDEB} RELWITHDEBINFO)
37  CONFIGURE_FILE("${MITK_SOURCE_DIR}/CMake/MITK.vcxproj.user.in" ${CMAKE_CURRENT_BINARY_DIR}/${VSUPF_NAME}.vcxproj.user @ONLY)
38 
39 endfunction()
mitkFunctionGetLibrarySearchPaths(search_path, intermediate_dir)
mitkFunctionConfigureVisualStudioUserProjectFile()
This function will configure a user file for visual studio projects.
const std::string NAME