WSL/SLF GitLab Repository

Commit a45d092c authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Added a distclean target

And moved the binary inishell into a "bin" directory
parent 6a7180aa
......@@ -91,4 +91,17 @@ INCLUDE_DIRECTORIES("${PROJECT_SOURCE_DIR}/")
SET(SOURCES ${EXTRA_LIBS_SRC} ${PANELS_SRC} ${GUI_SRC} ${MAIN_SRC} ${RESOURCES})
ADD_EXECUTABLE(${TARGET} ${SOURCES})
TARGET_LINK_LIBRARIES(${TARGET} ${QT5_LIBRARIES})
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
CLEAN_DIRECT_OUTPUT 1
OUTPUT_NAME ${TARGET})
INSTALL(TARGETS ${TARGET} RUNTIME DESTINATION bin COMPONENT exe)
ADD_CUSTOM_TARGET(distclean make clean
COMMAND cmake -E remove CMakeCache.txt CPackSourceConfig.cmake CPackConfig.cmake CTestTestfile.cmake DartConfiguration.tcl cmake_install.cmake cmake_uninstall.cmake install_manifest.txt Makefile
COMMAND cmake -E remove bin/inishell bin/inishell.*
COMMAND cmake -E remove */CMakeCache.txt */CTestTestfile.cmake */cmake_install.cmake
COMMAND cmake -E remove */*/CMakeCache.txt */*/CTestTestfile.cmake */*/cmake_install.cmake
COMMAND cmake -E remove_directory CMakeFiles
COMMAND cmake -E remove_directory build/tmp/obj tmp/obj inishell_autogen
)
Supports Markdown
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