Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

CMake

CMake is an open-source, cross-platform build system generator. It is designed to control the software compilation process using simple platform and compiler-independent configuration files, called CMakeLists.txt.

create a CMake project in Visual Studio

I use Visual Studio to start CMake projects because it's easier to create CMake files in Visual Studio.

1. set up CMake project

    1. select tools in the toolbar, and select get tools and features

image

    1. check Desktop with development with c++ has been ticked.

image Desktop with development with c++ make sure you could use CMake in visual studio.

    1. create a new c++ CMake project

image

image

2. create a new code module and source the file

    1. add a new folder

in Solution Explorer, right-click the root folder and select add -> add new folder, named new_code_module.

image

    1. update the root CMakeList.txt add the code below

add_subdirectory ("new_code_module)")

image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors