Home

Awesome

CNL Example Project

Introduction

This project demonstrates the use of CNL. It outputs the following image of the Mandelbrot Set:

                                       !                                       
                            !!!!!!!!!!!!!!!!!!!!!!!                            
                        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                        
                     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                     
                  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                  
                !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                
              !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!              
            !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!            
          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!          
         !!!!!!!!!!!"""""""""""""""""""!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!         
        !!!!!!!!"""""""""""""""""######"""""!!!!!!!!!!!!!!!!!!!!!!!!!!!        
       !!!!!!""""""""""""""""####$$''%$####""""!!!!!!!!!!!!!!!!!!!!!!!!!       
      !!!!""""""""""""""""######$$%&*() $####""""!!!!!!!!!!!!!!!!!!!!!!!!      
     !!!!"""""""""""""""#######$$$&'66)&%$####"""""!!!!!!!!!!!!!!!!!!!!!!!     
    !!!"""""""""""""""#######$$%%(-;  PA&$$$$###"""""!!!!!!!!!!!!!!!!!!!!!!    
   !!!""""""""""""""#######$%%%&&'/    A'&%%$$$##"""""!!!!!!!!!!!!!!!!!!!!!!   
   !""""""""""""""#####$$$%,Z,()4M/5  6.7*-'&&,%##"""""!!!!!!!!!!!!!!!!!!!!!   
  !"""""""""""""###$$$$$%%&(1              ,547'$#""""""!!!!!!!!!!!!!!!!!!!!!  
  !""""""""""##$$$$$$$$%%&)*1                 +&$$#""""""!!!!!!!!!!!!!!!!!!!!  
 !"""""""####$,&%%%%%&&&'(/                   c'&$##""""""!!!!!!!!!!!!!!!!!!!! 
 """"#####$$$%(+*))/((''(.                      )$##""""""!!!!!!!!!!!!!!!!!!!! 
 ""######$$$%&')N E   8*+                      +&$##""""""!!!!!!!!!!!!!!!!!!!! 
 ######$$$$&'(*Z        1                      *%$###""""""!!!!!!!!!!!!!!!!!!! 
 #$##$%%%&&(.10                               .&$$###""""""!!!!!!!!!!!!!!!!!!! 
                                            D*'%$$###""""""!!!!!!!!!!!!!!!!!!!!
 #$##$%%%&&(.10                               .&$$###""""""!!!!!!!!!!!!!!!!!!! 
 ######$$$$&'(*Z        1                      *%$###""""""!!!!!!!!!!!!!!!!!!! 
 ""######$$$%&')N E   8*+                      +&$##""""""!!!!!!!!!!!!!!!!!!!! 
 """"#####$$$%(+*))/((''(.                      )$##""""""!!!!!!!!!!!!!!!!!!!! 
 !"""""""####$,&%%%%%&&&'(/                   e'&$##""""""!!!!!!!!!!!!!!!!!!!! 
  !""""""""""##$$$$$$$$%%&)*1                 +&$$#""""""!!!!!!!!!!!!!!!!!!!!  
  !"""""""""""""###$$$$$%%&(1              ,547'$#""""""!!!!!!!!!!!!!!!!!!!!!  
   !""""""""""""""#####$$$%,V,()4M/5  6.7*-'&&,%##"""""!!!!!!!!!!!!!!!!!!!!!   
   !!!""""""""""""""#######$%%%&&'/    A'&%%$$$##"""""!!!!!!!!!!!!!!!!!!!!!!   
    !!!"""""""""""""""#######$$%%(-;  IA&$$$$###"""""!!!!!!!!!!!!!!!!!!!!!!    
     !!!!"""""""""""""""#######$$$&'56)&%$####"""""!!!!!!!!!!!!!!!!!!!!!!!     
      !!!!""""""""""""""""######$$%&*() $####""""!!!!!!!!!!!!!!!!!!!!!!!!      
       !!!!!!""""""""""""""""####$$''%$####""""!!!!!!!!!!!!!!!!!!!!!!!!!       
        !!!!!!!!"""""""""""""""""######"""""!!!!!!!!!!!!!!!!!!!!!!!!!!!        
         !!!!!!!!!!!"""""""""""""""""""!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!         
          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!          
            !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!            
              !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!              
                !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                
                  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                  
                     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                     
                        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                        
                            !!!!!!!!!!!!!!!!!!!!!!!                            
                                       !                                       

Instructions

To run this program on Linux using CMake and Conan:

  1. Get the source:

    git clone git@github.com:johnmcfarlane/cnl_example.git
    cd cnl_example
    
  2. Add Bintray conan repository:

    conan remote add johnmcfarlane/cnl https://api.bintray.com/conan/johnmcfarlane/cnl
    
  3. Create a build environment in a directory called build:

    mkdir -p build
    cd build
    conan install --build=missing ..
    cmake -DCMAKE_MODULE_PATH=$(pwd) ..
    
  4. Build the demo program:

    cmake --build .
    
  5. Run the demo program:

    ./cnl_example
    
  6. Test the output of the demo program:

    ctest