1 SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
\r
6 ADD_DEFINITIONS(-mwindows -O4)
\r
10 # resource compilation for mingw
\r
11 ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/aplay_rc.o
\r
12 COMMAND windres.exe -I${CMAKE_CURRENT_SOURCE_DIR}
\r
13 -i${CMAKE_CURRENT_SOURCE_DIR}/aplay.rc
\r
14 -o ${CMAKE_CURRENT_BINARY_DIR}/aplay_rc.o)
\r
15 SET(aplay_EXE_SRCS ${aplay_EXE_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/aplay_rc.o)
\r
17 SET(aplay_EXE_SRCS ${aplay_EXE_SRCS} aplay.rc)
\r
23 ADD_EXECUTABLE(aplay WIN32 ${aplay_EXE_SRCS})
\r
24 TARGET_LINK_LIBRARIES(aplay winmm)
\r