include(${CMAKE_HOME_DIRECTORY}/tools/cmake/MaintainerMode.cmake)
include(${CMAKE_HOME_DIRECTORY}/tools/cmake/UnitTesting.cmake)
+add_custom_target(tests COMMENT "Recompiling the tests")
+
### Make Libs
if(NOT WIN32)
include(${CMAKE_HOME_DIRECTORY}/tools/cmake/MakeLib.cmake)
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/simgrid)
install(TARGETS smpimain # install that binary without breaking the rpath on Mac
RUNTIME DESTINATION lib/simgrid)
+ add_dependencies(tests smpimain)
add_executable(smpireplaymain src/smpi/smpi_replay_main.cpp)
target_compile_options(smpireplaymain PRIVATE -fpic)
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/simgrid)
install(TARGETS smpireplaymain # install that binary without breaking the rpath on Mac
RUNTIME DESTINATION lib/simgrid)
+ add_dependencies(tests smpireplaymain)
if(SMPI_FORTRAN)
if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
-add_custom_target(tests COMMENT "Recompiling the tests")
-
IF(enable_smpi AND NOT WIN32)
execute_process(COMMAND chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpicc)
execute_process(COMMAND chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpicxx)