Re: [CMake] How Can I compile the following code on Windows with CMake?

2009-04-01 Thread Philip Lowman
On Mon, Mar 30, 2009 at 7:48 PM, Kermit Mei wrote: > I want to add the following program as a part of my project, but I don't > konw how to manage it in CMake. > > I worte the following in my CMakeLists.txt: > FIND_LIBRARY(LIBWMM winmm) > ADD_EXECUTABLE(aplay WIN32 aplay.c) > TARGET_LINK_LIBRA

[CMake] How Can I compile the following code on Windows with CMake?

2009-03-30 Thread Kermit Mei
I want to add the following program as a part of my project, but I don't konw how to manage it in CMake. I worte the following in my CMakeLists.txt: FIND_LIBRARY(LIBWMM winmm) ADD_EXECUTABLE(aplay WIN32 aplay.c) TARGET_LINK_LIBRARIES(aplay ${LIBWMM}) But it always told me that "undefined ref