请按照下述例子进行配置:例1:cpp文件中: #include ‘test.h’目录:|- cpp|– CMakeLists.txt|– include|— test.hCMakeLists.txt头文件:include_directories(${NATIVERENDER_ROOT_PATH}/include)例2:cpp文件中: #include ‘include/test/test.h’目录:|- cpp|– CMakeLists.txt|– include|— test|---- test.hCMakeLists.txt头文件:include_directories(${NATIVERENDER_ROOT_PATH})例3:cpp文件中: #include ‘test/test.h’目录:|- cpp|– CMakeLists.txt|– include|— test|---- test.hCMakeLists.txt头文件: include_directories(${NATIVERENDER_ROOT_PATH}/include)例4:cpp文件中: #include ‘test.h’目录:|- cpp|– CMakeLists.txt|– include|— test|---- test.hCMakeLists.txt头文件: include_directories(${NATIVERENDER_ROOT_PATH}/include/test)
请按照下述例子进行配置:
例1:
cpp文件中: #include ‘test.h’
目录:
|- cpp
|– CMakeLists.txt
|– include
|— test.h
CMakeLists.txt头文件:include_directories(${NATIVERENDER_ROOT_PATH}/include)
例2:
cpp文件中: #include ‘include/test/test.h’
目录:
|- cpp
|– CMakeLists.txt
|– include
|— test
|---- test.h
CMakeLists.txt头文件:include_directories(${NATIVERENDER_ROOT_PATH})
例3:
cpp文件中: #include ‘test/test.h’
目录:
|- cpp
|– CMakeLists.txt
|– include
|— test
|---- test.h
CMakeLists.txt头文件: include_directories(${NATIVERENDER_ROOT_PATH}/include)
例4:
cpp文件中: #include ‘test.h’
目录:
|- cpp
|– CMakeLists.txt
|– include
|— test
|---- test.h
CMakeLists.txt头文件: include_directories(${NATIVERENDER_ROOT_PATH}/include/test)