Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コードがコンパイルされるかどうかを確認したいと思います。私のcMakeList.txtで、source_filesを次のように定義しましたfile()
file()
この変数をモジュール CheckCXXSourceCompiles に渡す機会はありますか?
次のようなテストを行うようなものです。
check_cxx_source_compiles("int main() { return 0;}" DUMMY)
しかし、明らかにすべての人にとって${source_files}
${source_files}