FILE ( GLOB SOURCES *.c *.cpp ) ADD_EXECUTABLE ( ${PROJECT_NAME} ${SOURCES} ) TARGET_LINK_LIBRARIES ( ${PROJECT_NAME} ${ALL_LIBRARIES} pthread) IF ( UNIX ) INSTALL ( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "/usr/local/bin" ) ENDIF ( UNIX )