Hi, I wrote a minimal and simplified example for you, These three files must stay in the same folder with a main.cpp test file:
_src.cmake http://pastebin.com/DJVyEaPJ dep-config.cmake http://pastebin.com/fLsm9SYf CMakeLists.txt http://pastebin.com/sSJJVw6u babaei@13x17 /some/path/build $ cmake ../ -- The C compiler identification is GNU 4.2.1 -- The CXX compiler identification is GNU 4.2.1 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found CZMQ: -- (Headers) /usr/local/include -- (Library) /usr/local/lib/libczmq.so -- Found ZeroMQ: -- (Headers) /usr/local/include -- (Library) /usr/local/lib/libzmq.so -- Configuring done -- Generating done -- Build files have been written to:/some/path/build babaei@13x17 /some/path/build $ make Scanning dependencies of target myapp [100%] Building CXX object CMakeFiles/myapp.dir/main.cpp.o Linking CXX executable myapp [100%] Built target myapp On Sat, Dec 29, 2012 at 9:00 PM, Claudio Carbone <[email protected]> wrote: > Hello. > > I'm pretty new to cmake. > In order to make a project more easily distributable with collaborative > means (git) I'm trying to setup a decent build tree using cmake. > I am at a point where I need to tell the system that I need both ZMQ and > CZMQ libs. > How do I do that? > > I tried > find_package(ZMQ) > and variations on this, but they always fail citing the script is missing. > > What should I do? > > > Claudio > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > -- *We are the puppets and fate the puppeteer / This is not a metaphor, but a truth sincere / On this stage, fate for sometime our moves steer / Into the chest of non-existence, one by one disappear.* *-- Omar Khayyam* * * *ما لعبتکانیم و فلک لعبت باز / از روی حقیقتی نه از روی مجاز / یک چند در این بساط بازی کردیم / رفتیم به صندوق عدم یک یک باز* *-- حکیم عمر خیام* * *
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
