cbkiyanda / cspl

Common Scientific Programming Library
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

cmake to build the examples #7

Closed balarsen closed 10 years ago

balarsen commented 10 years ago

Starting on 15feb5902cd86bb9259ba0537422d8 there is something I don't understand about getting cmake to find the directories the headers are in to build the examples. I think I am close but not quite there. Seems like we need a find_package() for CSPL or there is some variable I don't know about that can add the directories of the headers to the -I line on gcc.

See Examples/Stats/CMakeLists.txt

nicolasbock commented 10 years ago

I fixed it. It was just a matter of using target_include_directories().

balarsen commented 10 years ago

Great that worked indeed!