cmake_minimum_required(VERSION 3.16.3) # Set the project name and version project(cgen VERSION 0.1.0) # specify the C++ standard set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED True) configure_file(cgenConfig.h.in cgenConfig.h) set( CGEN_SRC src/main.cpp src/utils/CmdArgParser.cpp src/utils/StringManip.cpp ) # add the executable add_executable(${PROJECT_NAME} ${CGEN_SRC}) target_include_directories(${PROJECT_NAME} PUBLIC "${PROJECT_BINARY_DIR}" PUBLIC src )