- ソースファイルとCMakeLists.txt。 (パス:〜/ work/src)
- unittestのソース。そして、CMakeLists.txt(パス:〜/仕事/ SRC/unittestの/)
は〜/仕事/ SRC/unittestの/ CMakeLists.txtでは、私は、コマンドを〜/仕事でcmakeインクルードファイルとファイルパス
include (${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)
を含ん使用/src/CMakeLists.txt、
file (STRINGS "../profile" profile)
私はunittestパスでcmakeを使いたいと思っています。
エラーメッセージ: CMake Error at ~/work/src/CMakeLists.txt:13 (file): file STRINGS file "~/work/src/unittest/../profile" cannot be read. Call Stack (most recent call first): CMakeLists.txt:6 (include)
どうすればいいですか?