cmake create directory

Dec 01 2011 Published under Programming | Tags:

Example CMakeLists.txt

set(pname OpenCV_Segmenter)
PROJECT( ${pname} )
FIND_PACKAGE( OpenCV REQUIRED )

ADD_EXECUTABLE( ./bin/${pname} ./src/${pname}.cpp )
TARGET_LINK_LIBRARIES( ./bin/${pname} ${OpenCV_LIBS} )
file(MAKE_DIRECTORY ./bin)

ref: http://stackoverflow.com/questions/3702115/creating-a-directory-in-cmake

Tags:

No responses yet

Comments are closed at this time.

Login