Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Factor common expression and don't duplicate string literals.
[simgrid.git] / tools / graphicator / CMakeLists.txt
index 05d6a46d9379e3a7ba77cb97b7af863abee05f2a..66b8af3b0e44180a20de9e4bb4c7816a9a4c97ee 100644 (file)
@@ -1,6 +1,10 @@
 add_executable       (graphicator graphicator.c)
+add_dependencies     (tests       graphicator)
 target_link_libraries(graphicator simgrid)
 set_target_properties(graphicator PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
+ADD_TESH(graphicator --setenv srcdir=${CMAKE_HOME_DIRECTORY} --setenv bindir=${CMAKE_BINARY_DIR}/bin --cd ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/graphicator.tesh)
+
+install(TARGETS graphicator DESTINATION bin/)
 
 ## Clean generated files
 get_directory_property(extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES)