Commit 775e507e authored by Nicolas Van der Noot's avatar Nicolas Van der Noot
Browse files

flag release set to ON and opti for libraried

parent 349bba21
......@@ -9,14 +9,22 @@ cmake_minimum_required(VERSION 2.8.7)
project(MBproj_symbolicR)
# project configuration
set( CMAKE_C_FLAGS_RELEASE "-O3" )
set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
# Variable for storing the path to Robotran common files (should be adapted depending on the location of those source)
set( ROBOTRAN_DIR_COMMON ${PROJECT_SOURCE_DIR}/../../../MBsysC/ )
set( ROBOTRAN_DIR_COPY ${PROJECT_SOURCE_DIR}/../mbsysCopy/ )
# change the following line with 'set( ROBOTRAN_SOURCE_DIR ${ROBOTRAN_DIR_COPY} )'' to use the Standalone version
set( ROBOTRAN_SOURCE_DIR ${ROBOTRAN_DIR_COMMON} )
# listing CMake functions
# listing and flags CMake functions
add_subdirectory (${ROBOTRAN_SOURCE_DIR}/cmake_aux/listing/ ${PROJECT_BINARY_DIR}/cmake_aux/listing/)
add_subdirectory (${ROBOTRAN_SOURCE_DIR}/cmake_aux/flags/ ${PROJECT_BINARY_DIR}/cmake_aux/flags/)
# release of debug
release_debug()
# list source files to compile
init_src()
......
......@@ -26,7 +26,7 @@ mkdir $1/build/
# generate CMake project
cd $1/build/
cmake $1
cmake $1 -DFLAG_RELEASE=ON
echo ""
......
......@@ -8,6 +8,10 @@ project(MBsysC)
## --------------- ##
# project configuration
set( CMAKE_C_FLAGS_RELEASE "-O3" )
set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
# link to useful CMake functions
set(CMAKE_AUX "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_aux")
set(CMAKE_AUX_BIN ${PROJECT_BINARY_DIR}/cmake_aux)
......
......@@ -6,6 +6,13 @@ cmake_minimum_required(VERSION 2.8.7)
project(MBsysC_loadXML)
# project configuration
set( CMAKE_C_FLAGS_RELEASE "-O3" )
set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
# release of debug
release_debug()
# Libxml2
xml_lib(mbs_load_xml)
set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} PARENT_SCOPE)
......
......@@ -6,6 +6,13 @@ cmake_minimum_required(VERSION 2.8.7)
project(MBsysC_module)
# project configuration
set( CMAKE_C_FLAGS_RELEASE "-O3" )
set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
# release of debug
release_debug()
# Libxml2
xml_lib(mbs_module)
set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} PARENT_SCOPE)
......
......@@ -6,6 +6,13 @@ cmake_minimum_required(VERSION 2.8.7)
project(MBsysC_numerics)
# project configuration
set( CMAKE_C_FLAGS_RELEASE "-O3" )
set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
# release of debug
release_debug()
# list source files to compile
init_src()
increment_src(./)
......
......@@ -6,6 +6,13 @@ cmake_minimum_required(VERSION 2.8.7)
project(MBsysC_realtime)
# project configuration
set( CMAKE_C_FLAGS_RELEASE "-O3" )
set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
# release of debug
release_debug()
# list source files to compile
init_src()
increment_src(./realtime)
......
......@@ -6,6 +6,13 @@ cmake_minimum_required(VERSION 2.8.7)
project(MBsysC_struct)
# project configuration
set( CMAKE_C_FLAGS_RELEASE "-O3" )
set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
# release of debug
release_debug()
# list source files to compile
init_src()
increment_src(./)
......
......@@ -6,6 +6,13 @@ cmake_minimum_required(VERSION 2.8.7)
project(MBsysC_utilities)
# project configuration
set( CMAKE_C_FLAGS_RELEASE "-O3" )
set( CMAKE_CXX_FLAGS_RELEASE "-O3" )
# release of debug
release_debug()
# list source files to compile
init_src()
increment_src(./)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment