cmake_minimum_required() # ------------------------------------------------------------------ # Define a custom target to run the default 'make' command # ------------------------------------------------------------------ add_custom_target( MinigameMenu COMMAND ${MAKE_EXECUTABLE} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Running make in the project directory..." VERBATIM ) # ------------------------------------------------------------------ # Define a custom target to run 'make clean' # ------------------------------------------------------------------ add_custom_target( Clean COMMAND ${MAKE_EXECUTABLE} clean WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Running make clean in the project directory..." VERBATIM ) # ------------------------------------------------------------------ # Define a custom target to run 'make clean' # ------------------------------------------------------------------ add_custom_target( Tarball COMMAND ${MAKE_EXECUTABLE} tarball2 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Running make tarball in the project directory..." VERBATIM )