使用单独的资源文件夹构建cmake项目

时间:2014-12-20 23:38:12

标签: c++ cmake

我有一个包含三个文件夹的项目:

project:  main.cpp and CMakeLists.txt
          sub_directory1 :  bunch of *.cpp and *.h  CMakeLists.txt
          sub_directory2 :   .glade files and .txt files
          build

我能够为sub_directory1创建包含资源文件的库,但是我想组织一下

错误结果,sub_directory1中的.cpp文件使用sub_directory2 .txt.glade个文件

如何让cmake知道让.cpp知道.glade个文件和.txt文件的位置,然后在构建文件夹中构建

0 个答案:

没有答案