comparison cmake/function/MalikaniaDefineExecutable.cmake @ 50:697bf85e8e19

CMake: move executables into fakeroot/bin
author David Demelier <markand@malikania.fr>
date Thu, 15 Dec 2016 13:42:13 +0100
parents 2804ae55c70f
children 0edaba9986ba
comparison
equal deleted inserted replaced
49:2804ae55c70f 50:697bf85e8e19
49 49
50 add_executable(${EXE_TARGET} ${EXE_SOURCES}) 50 add_executable(${EXE_TARGET} ${EXE_SOURCES})
51 target_link_libraries(${EXE_TARGET} ${EXE_LIBRARIES}) 51 target_link_libraries(${EXE_TARGET} ${EXE_LIBRARIES})
52 target_include_directories(${EXE_TARGET} PRIVATE ${EXE_INCLUDES}) 52 target_include_directories(${EXE_TARGET} PRIVATE ${EXE_INCLUDES})
53 target_compile_definitions(${EXE_TARGET} PRIVATE ${EXE_FLAGS}) 53 target_compile_definitions(${EXE_TARGET} PRIVATE ${EXE_FLAGS})
54 set_target_properties(
55 ${EXE_TARGET}
56 PROPERTIES
57 RUNTIME_OUTPUT_DIRECTORY ${WITH_FAKEROOT_DIR}/bin
58 )
59 foreach (c ${CMAKE_CONFIGURATION_TYPES})
60 string(TOUPPER ${c} c)
61 set_target_properties(
62 ${EXE_TARGET}
63 PROPERTIES
64 RUNTIME_OUTPUT_DIRECTORY_${c} ${WITH_FAKEROOT_DIR}/bin
65 )
66 endforeach()
54 endfunction() 67 endfunction()