No include folder after INSTALL project is made
Hi, I have used the following configurations 1-MS visual studio 2015 64x 2-Qt5 3-VTK9 4-DCMTK (latest version) VTK and DCMTK already installed on my computer and I configured the CTK to used them. So far so good, CTK libraries widgets (DICOM and VTK) are make but when I build the INSTALL project I expect 4 folders: bin, lib,CMAKE and include to appear in my install destination. Except CMAKE, non of the other folders comes up. Do you have any idea what should I do?
Thanks
Have you set CTK_INSTALL_..._DIR variables? Make sure you install the internal (CTK-binary)\CTK-build\CTK.sln project.
thanks
Have you set CTK_INSTALL_..._DIR variables? Make sure you install the internal (CTK-binary)\CTK-build\CTK.sln project.
Hi, I encountered the same problem. I can find the installed CTK in the BUILD library but I would like to install it to C:\apps\CTK For now I'm trying to do it by editing CMakeLists.txt in CTK-master folder as follows:
set(CTK_INSTALL_BIN_DIR "$C:/apps/CTK/bin")
set(CTK_INSTALL_LIB_DIR "$C:/apps/CTK/lib/ctk-${CTK_MAJOR_VERSION}.${CTK_MINOR_VERSION}")
set(CTK_INSTALL_PLUGIN_DIR "$C:/apps/CTK/lib/ctk-${CTK_MAJOR_VERSION}.${CTK_MINOR_VERSION}/plugins")
set(CTK_INSTALL_CMAKE_DIR "$C:/apps/CTK/lib/ctk-${CTK_MAJOR_VERSION}.${CTK_MINOR_VERSION}/CMake")
set(CTK_INSTALL_INCLUDE_DIR "$C:/apps/CTK/include/ctk-${CTK_MAJOR_VERSION}.${CTK_MINOR_VERSION}")
set(CTK_INSTALL_DOC_DIR "$C:/apps/CTK/doc")
Does it correct? Or how to set the install directory to C:\apps\CTK? P.S. earlier I used to change INSTALL_PREFIX in CMake GUI but now it didn't work :(
You should configure CTK passing these options from the command line (or from a CMake external project like it is done here)
Variables CTK_INSTALL_*_DIR should be set with a relative path not an absolute path
If you would like to install CTK in a specific directory, you should set CMAKE_INSTALL_PREFIX
For example, first you configure:
cd CTK-build
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX:PATH=C:\apps\CTK ..\CTK
The, you build:
cmake --build . --config Release -- /maxcpucount:4
and finally you install:
cmake --build .\CTK-build --config Release --target INSTALL