# I am migrating my system from windows to Linux, and now want cmakefile.txt to be generated automatically for my source code, can I use the tool for the same

**URL:** https://discourse.cmake.org/t/i-am-migrating-my-system-from-windows-to-linux-and-now-want-cmakefile-txt-to-be-generated-automatically-for-my-source-code-can-i-use-the-tool-for-the-same/9160
**Category:** Usage
**Created:** [October 9, 2023, 4:48pm UTC](https://discourse.cmake.org/t/i-am-migrating-my-system-from-windows-to-linux-and-now-want-cmakefile-txt-to-be-generated-automatically-for-my-source-code-can-i-use-the-tool-for-the-same/9160 "2023-10-09T16:48:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![AYUSH\_KUMAR](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ayush_kumar/32/3900_2.png) [@AYUSH\_KUMAR](https://discourse.cmake.org/u/AYUSH_KUMAR)
#### Post date: [October 9, 2023, 4:48pm UTC](https://discourse.cmake.org/t/i-am-migrating-my-system-from-windows-to-linux-and-now-want-cmakefile-txt-to-be-generated-automatically-for-my-source-code-can-i-use-the-tool-for-the-same/9160/1 "2023-10-09T16:48:39Z")

</div>

I am migrating my project from windows to Linux and want cmakefile  
.text to be generated automatically can I use cmake in any way. For the existing projects

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [October 9, 2023, 8:34pm UTC](https://discourse.cmake.org/t/i-am-migrating-my-system-from-windows-to-linux-and-now-want-cmakefile-txt-to-be-generated-automatically-for-my-source-code-can-i-use-the-tool-for-the-same/9160/2 "2023-10-09T20:34:45Z")

</div>

What build system do the existing projects use?

---

<div class="post-metadata">

### Author: ![AYUSH\_KUMAR](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ayush_kumar/32/3900_2.png) [@AYUSH\_KUMAR](https://discourse.cmake.org/u/AYUSH_KUMAR)
#### Post date: [October 10, 2023, 12:47am UTC](https://discourse.cmake.org/t/i-am-migrating-my-system-from-windows-to-linux-and-now-want-cmakefile-txt-to-be-generated-automatically-for-my-source-code-can-i-use-the-tool-for-the-same/9160/3 "2023-10-10T00:47:33Z")

</div>

Visual studio 2015, I am using

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [October 10, 2023, 2:13pm UTC](https://discourse.cmake.org/t/i-am-migrating-my-system-from-windows-to-linux-and-now-want-cmakefile-txt-to-be-generated-automatically-for-my-source-code-can-i-use-the-tool-for-the-same/9160/4 "2023-10-10T14:13:23Z")

</div>

I would take the CMakeLists.txt that you’re using with visual studio and put it at the top level of the repository, and then edit it to be more general and not visual studio specific. There’s not an automatic tool to do this.

---

<div class="post-metadata">

### Author: ![jtxa](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jtxa/32/1535_2.png) [@jtxa](https://discourse.cmake.org/u/jtxa)
#### Post date: [October 10, 2023, 4:49pm UTC](https://discourse.cmake.org/t/i-am-migrating-my-system-from-windows-to-linux-and-now-want-cmakefile-txt-to-be-generated-automatically-for-my-source-code-can-i-use-the-tool-for-the-same/9160/5 "2023-10-10T16:49:44Z")

</div>

@scivision I guess he’s looking for a “VS project to CMake converter”.

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [October 10, 2023, 9:56pm UTC](https://discourse.cmake.org/t/i-am-migrating-my-system-from-windows-to-linux-and-now-want-cmakefile-txt-to-be-generated-automatically-for-my-source-code-can-i-use-the-tool-for-the-same/9160/6 "2023-10-10T21:56:23Z")

</div>

[https://cmake.org/cmake/help/book/mastering-cmake/chapter/Converting%20Existing%20Systems%20To%20CMake.html#converting-windows-based-workspaces](https://cmake.org/cmake/help/book/mastering-cmake/chapter/Converting%20Existing%20Systems%20To%20CMake.html#converting-windows-based-workspaces)
