Update cpp_cmake.rst
This commit is contained in:
parent
e25df6706d
commit
8bf0750090
@ -103,8 +103,7 @@ Creating the project
|
||||
)
|
||||
|
||||
set(EXE_NAME hellocpp)
|
||||
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${AC_HW_FLAGS} ${AC_DEFINES}")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${AC_HW_FLAGS} ${AC_DEFINES}")
|
||||
set(CMAKE_CXX_FLAGS "${AC_HW_FLAGS} ${AC_DEFINES} ${AC_COMMON_FLAGS} ${AC_CXX_EXTRA_FLAGS}")
|
||||
if (PARAM_DEBUG)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
||||
@ -112,9 +111,7 @@ Creating the project
|
||||
|
||||
set(CMAKE_SKIP_RPATH ON)
|
||||
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_LINKER} ${AC_LINKER_FLAGS} -o ${EXE_NAME}.elf <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
* hellocpp/cmake/stm32f4discovery.cmake
|
||||
|
Loading…
Reference in New Issue
Block a user