1 2 3 4 5 6 7 8 9 10 11 12 13
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})