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.
24 lines
500 B
CMake
24 lines
500 B
CMake
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
|
|
) |