Patrickquinn1212 icon

cmake reference

Patrickquinn1212 | PRO | 10/08/22 02:01:41 PM UTC (Edited) | 0 ⭐ | 13211 👁️ | Never ⏰ | [make]
CMake |

400 B

|

None

|

0 👍

/

0 👎

cmake_minimum_required(VERSION 3.13)  # CMake version check
project(simple_example)               # Create project "simple_example"
set(CMAKE_CXX_STANDARD 14)            # Enable c++14 standard
 
# Add main.cpp file of project root directory as source file
set(SOURCE_FILES main.cpp)
 
# Add executable target with source files listed in SOURCE_FILES variable
add_executable(simple_example ${SOURCE_FILES})
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎