Search code examples
c++windowsadtf

Using ADTF File Library


I wanted to use ADTF library in my visual studio project. Do i need to build the library from my machine to use it? The instructions provided with the library are not clear to me since i haven't used cmake build before.

Any help in this regard is greatly appreciated.


Solution

  • The following instructions are for ADTF File Library 0.7:

    Linux

    1. First build a_util $ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=<any-install-dir> -Da_util_cmake_enable_documentation=OFF -Da_util_cmake_enable_integrated_tests=OFF . && make && make install

    2. Then build ddl $ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=<any-install-dir> -Da_util_DIR=<a_util-install-dir-given-above> -Dddl_cmake_enable_documentation=OFF -Dddl_cmake_enable_tests=OFF -Dddl_cmake_enable_generator_tools=OFF -Dddl_cmake_enable_installation=ON . && make && make install

    3. Then build ifhd $ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=<any-install-dir> -Da_util_DIR=<a_util-install-dir-given-above> -Dddl_DIR=<ddl-install-dir-given-above> -Difhd_cmake_enable_documentation=OFF -Difhd_cmake_enable_integrated_tests=OFF . && make && make install

    Windows cmake steps remain the same. It will generate visual studio solution that you can use to build and edit.