1 cmake_minimum_required(VERSION 3.0.2)
3 add_executable(bin2h bin2h.c)
4 # Enforce no dressing for executable names, so the main script can find it
5 set_target_properties(bin2h PROPERTIES OUTPUT_NAME bin2h)
6 # Avoid configuration-dependent subdirectories while building with Visual Studio
7 set_target_properties(bin2h PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}")
8 set_target_properties(bin2h PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}")