[CMake] Use of <project>_EXE_NAME, <project>_LIB_NAME ?

Stephen Collyer scollyer at netspinner.co.uk
Wed Nov 14 14:10:12 EST 2007


I've noticed in some CMakeList.txt file the following setup:

PROJECT(MYPROJ)

SET(MYPROJ_EXE_NAME my_proj_exe)
SET(MYPROJ_LIB_NAME my_proj_lib)

I assume that the <project>_EXE_NAME/_LIB_NAME have some
special significance to cmake, but I can find anything in
the wiki that mentions these. So:

1. Am I correct in assuming that names of this form are
treated specially somehow ? And if so, how ?

2. How do thise names relate to executables and libraries
added via ADD_EXECUTABLE and ADD_LIBRARY ?

-- 
Regards

Steve Collyer
Netspinner Ltd


More information about the CMake mailing list