Cinder
Cinder copied to clipboard
Get all samples building and running with new cmake
Moved over from #1481.
Most are resources that need to be added to the sample projects.
Need to test on both linux and Mac OS X.
Samples needing to be fixed:
- [X] Earthquake (#1868)
- [ ] Anything requiring Cairo (mostly stuff in samples/_svg folder).
OS X and Ubuntu Trusty Currently produces:
verbose (CMakeLists.txt) -- adding sample: 1
CMake Error at CMakeLists.txt:54 (add_subdirectory):
add_subdirectory given source
"/Cinder/samples/1/proj/cmake" which is not an existing
directory.
What is the full cmake command?
mkdir build
cd build
cmake .. -DCINDER_VERBOSE:BOOL=1 -DCMAKE_BUILD_TYPE=Release -DCINDER_BUILD_TESTS=1 -DCINDER_BUILD_SAMPLE=1
I was afraid that this confusion might come up. You either want -DCINDER_BUILD_ALL_SAMPLES=1
or -DCINDER_BUILD_SAMPLE={sample name}
.
Got it. I don't think the naming is an issue as long as we document (and I read said documentation)
I can look at this again for a few days. Have people stopped arguing over the desired CMake version yet?