You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
559 B
CMake

cmake_minimum_required(VERSION 3.16.3)
# Set the project name and version
project(cgen VERSION 1.1.0)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
configure_file(cgenConfig.h.in cgenConfig.h)
# specify the project source files
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
)