Improve the windows respond by using thread
[QFreeRecite.git] / src / aplay / CMakeLists.txt
blob667558261d44e70af274d0ad5fe707de66b03e44
1 SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)\r
2 SET(aplay_EXE_SRCS\r
3     aplay.c\r
4 )\r
5 \r
6 ADD_DEFINITIONS(-mwindows -O4)\r
7 \r
8 if(WIN32)\r
9   if(MINGW)\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
16   else(MINGW)\r
17     SET(aplay_EXE_SRCS ${aplay_EXE_SRCS} aplay.rc)\r
18   endif(MINGW)\r
19 endif(WIN32)\r
21 # sim executable\r
23 ADD_EXECUTABLE(aplay WIN32 ${aplay_EXE_SRCS})\r
24 TARGET_LINK_LIBRARIES(aplay winmm)\r