[CMake] creating a DLL with an OpenCV dependency

2015-02-27 Thread Derek Cole
Hello, I have posted my question here because I forgot I was on this mailing list: http://stackoverflow.com/questions/28773650/cmake-for-windows-dll-with-opencv-project there you can find my Cmakelists.txt and some code snippets. This is my first time trying to build a DLL for windows with CMAKE

Re: [CMake] Using gnu flex with cmake

2012-12-17 Thread Derek Cole
2:09 PM, Eric Noulard wrote: > > > 2012/12/17 Derek Cole > >> Replying to fix the subject >> >> On Mon, Dec 17, 2012 at 1:45 PM, Derek Cole wrote: >> >>> >>>I am trying to figure out what I am doing wrong when trying to use >>

Re: [CMake] Using gnu flex with cmake

2012-12-17 Thread Derek Cole
Replying to fix the subject On Mon, Dec 17, 2012 at 1:45 PM, Derek Cole wrote: > >I am trying to figure out what I am doing wrong when trying to use > just flex in a Cmake file to build a shared lib. > > i basically have the following > > find_package(FLEX) > FLEX_T

[CMake] Using gnu flux with cmake

2012-12-17 Thread Derek Cole
I am trying to figure out what I am doing wrong when trying to use just flex in a Cmake file to build a shared lib. i basically have the following find_package(FLEX) FLEX_TARGET(Test ../src/test.l ../src/test.c)set(SRC_FILES mysource.c ${FLEX_Test_OUTPUTS}) add_libary(testlib ${SRC_FILES}) target

Re: [CMake] cmake removing "-w" from compile flag

2012-07-16 Thread Derek Cole
err, nevermind, i think that is a non-standard option or something. I am compiling someone's existing code and that is something leftover I think. -Derek On Mon, Jul 16, 2012 at 11:44 AM, Derek Cole wrote: > Hello, > > I have a CMake project with a few sub-projects to be built a

[CMake] cmake removing "-w" from compile flag

2012-07-16 Thread Derek Cole
Hello, I have a CMake project with a few sub-projects to be built as well. In one of the sub projects I want to compile to a shared object. I used the line add_library(myfiles SHARED myfiles.c) in the main project's CMakeLists.txt I have SET(CMAKE_C_FLAGS_DEBUG "-g -fPIC -O0 -pipe -std=c99 -