###############################
# Test the build dependencies #
###############################
###############################
# Test the build dependencies #
###############################
message(STATUS "Looking for lib Simgrid")
if("$ENV{SIMGRID_ROOT}" STREQUAL "")
message(STATUS "Looking for lib Simgrid - Not found")
message(STATUS "Looking for lib Simgrid")
if("$ENV{SIMGRID_ROOT}" STREQUAL "")
message(STATUS "Looking for lib Simgrid - Not found")
include_directories($ENV{SIMGRID_ROOT}/include)
include_directories($ENV{SIMGRID_ROOT}/src)
include_directories($ENV{SIMGRID_ROOT}/src/include)
include_directories($ENV{SIMGRID_ROOT}/include)
include_directories($ENV{SIMGRID_ROOT}/src)
include_directories($ENV{SIMGRID_ROOT}/src/include)
foreach(target "${TARGET_NAME}")
add_executable(${target} "${target}.c")
message(STATUS "source_file: ${target}.c")
message(STATUS "target name: ${target}.exe")
foreach(target "${TARGET_NAME}")
add_executable(${target} "${target}.c")
message(STATUS "source_file: ${target}.c")
message(STATUS "target name: ${target}.exe")
- # Any targets need to be linked with simgrid and pcre
- target_link_libraries(${target} simgrid pcre)
+ # Any targets need to be linked with libraries
+ target_link_libraries(${target} ${LIBRARIES_DEP})