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

flags parent scope

parent f489c169
......@@ -151,9 +151,7 @@ add_executable ( ${Executable} ${SOURCE_FILES} )
# EXECUTABLE LINKING
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
if (FLAG_SEPARATE_BUILD) # find MBSysC dynamic libraries
if ( FLAG_SEPARATE_BUILD ) # find MBSysC dynamic libraries
find_package( LibRobotranC REQUIRED )
target_link_libraries( ${Executable} ${LIB_MBSYSC_MODULES} ${LIB_MBSYSC_LOAD} ${LIB_MBSYSC_UTILITIES} )
......
......@@ -61,14 +61,27 @@ endfunction()
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
function(flags_check)
# real-time
if (NOT FLAG_REAL_TIME)
set( FLAG_PLOT OFF PARENT_SCOPE )
set( FLAG_VISU OFF PARENT_SCOPE )
set( FLAG_PLOT OFF )
set( FLAG_VISU OFF )
endif( )
# separate build
if (FLAG_SEPARATE_BUILD)
set ( FLAG_SHARED_LIB ON PARENT_SCOPE )
set ( FLAG_SHARED_LIB ON )
endif ( )
# parent scope
set( FLAG_RELEASE ${FLAG_RELEASE} PARENT_SCOPE )
set( FLAG_REAL_TIME ${FLAG_REAL_TIME} PARENT_SCOPE )
set( FLAG_PLOT ${FLAG_PLOT} PARENT_SCOPE )
set( FLAG_VISU ${FLAG_VISU} PARENT_SCOPE )
set( FLAG_SHARED_LIB ${FLAG_SHARED_LIB} PARENT_SCOPE )
set( FLAG_SEPARATE_BUILD ${FLAG_SEPARATE_BUILD} PARENT_SCOPE )
set( FLAG_SEPARATE_SYMBOLIC ${FLAG_SEPARATE_SYMBOLIC} PARENT_SCOPE )
endfunction()
......
Markdown is supported
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