zibbr

Random 3d and p2p stuff that was originally the beginnings of an overly ambitious p2p virtual world thingy
git clone https://code.literati.org/zibbr.git
Log | Files | Refs

CMakeLists.txt (555B)


      1 cmake_minimum_required (VERSION 2.6) 
      2 project (TEST)
      3 
      4 find_path(READLINE_INCLUDE_DIR readline/readline.h /usr/include /opt/local/include)
      5 find_path(JS_INCLUDE_DIR jsapi.h /usr/include/js /opt/local/include/js)
      6 include_directories(${READLINE_INCLUDE_DIR} ${JS_INCLUDE_DIR})
      7 
      8 find_library(JS_LIBRARY js /usr/lib /opt/local/lib)
      9 find_library(READLINE_LIBRARY readline /usr/lib /opt/local/lib)
     10 
     11 IF(UNIX)
     12     add_definitions(-DXP_UNIX)
     13 ENDIF(UNIX)
     14 
     15 add_executable(js-test js-test.c js-funcs.c)
     16 target_link_libraries(js-test ${JS_LIBRARY} ${READLINE_LIBRARY})
     17