I am Charmie

メモとログ

2013-12-05から1日間の記事一覧

CMake: how to get the name of parent directory

I have been looking for how to get the name of parent directory of CMAKE_SOURCE_DIR and could find the answer today. The solution is to use get_filename_component() function with "PATH" argument. Let's say CMAKE_SOURCE_DIR is "/code/testCm…