cmake_minimum_required(VERSION 2.6) include_directories(${PROJECT_SOURCE_DIR}/inc) add_executable( ${EXE} main.cpp FileAssembler.cpp ) add_custom_target(run COMMAND ${EXE} DEPENDS ${EXE} WORKING_DIRECTORY ${CMAKE_PROJECT_DIR} ) target_link_libraries(${EXE})