changed standard options and version number to semantic versioning
This commit is contained in:
parent
7faa92825f
commit
83fffc622a
1 changed files with 8 additions and 8 deletions
|
@ -1,8 +1,8 @@
|
||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
# Use the fancy version substitution
|
# Use the fancy version substitution
|
||||||
project(cmake-cpputest-template
|
project(main
|
||||||
VERSION 1.0
|
VERSION 0.1.0
|
||||||
DESCRIPTION "template for cmake + cpputest"
|
DESCRIPTION "template for cmake + cpputest"
|
||||||
LANGUAGES C CXX
|
LANGUAGES C CXX
|
||||||
)
|
)
|
||||||
|
@ -21,13 +21,14 @@ endif()
|
||||||
# For being able to used LSP
|
# For being able to used LSP
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
# Request C 17 standard features
|
# Request C standard features
|
||||||
set(CMAKE_C_STANDARD 17)
|
set(CMAKE_C_STANDARD 23)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED True)
|
set(CMAKE_C_STANDARD_REQUIRED True)
|
||||||
set(CMAKE_C_FLAGS "-Wall -Werror -Wpedantic")
|
set(CMAKE_C_FLAGS "-Wall -Wpedantic")
|
||||||
|
#set(CMAKE_C_FLAGS "-Wall -Werror -Wpedantic")
|
||||||
|
|
||||||
# SETUP THE CXX flags for .cpp
|
# SETUP THE CXX flags for .cpp
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||||
set(CMAKE_CXX_FLAGS "-Wall -Werror -Wpedantic")
|
set(CMAKE_CXX_FLAGS "-Wall -Werror -Wpedantic")
|
||||||
|
|
||||||
|
@ -53,7 +54,7 @@ if (UNIT_TESTING)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CPPUTEST_INCLUDE_DIRS}
|
${CPPUTEST_INCLUDE_DIRS}
|
||||||
/usr/include/c++/11/
|
#/usr/include/c++/11/
|
||||||
./inc
|
./inc
|
||||||
./mocks
|
./mocks
|
||||||
)
|
)
|
||||||
|
@ -61,7 +62,6 @@ if (UNIT_TESTING)
|
||||||
|
|
||||||
add_subdirectory(mocks)
|
add_subdirectory(mocks)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# #######################################
|
# #######################################
|
||||||
|
|
Loading…
Add table
Reference in a new issue