Skip to content

Instantly share code, notes, and snippets.

@wendal
Created April 10, 2012 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wendal/2351735 to your computer and use it in GitHub Desktop.
Save wendal/2351735 to your computer and use it in GitHub Desktop.
cmake for newLISP -- newLISP的CMake配置文件
cmake_minimum_required (VERSION 2.6)
include_directories(${CMAKE_SOURCE_DIR})
project(newlisp)
set(NEWLISP_SRC newlisp newlisp.c nl-symbol.c nl-math.c nl-list.c nl-liststr.c
nl-string.c nl-filesys.c nl-sock.c nl-import.c nl-xml.c nl-web.c nl-matrix.c
nl-debug.c pcre.c)
add_executable(newlisp ${NEWLISP_SRC})
#add_library(newlisp SHARED ${NEWLISP_SRC})
if(UNIX)
add_definitions("-DLINUX")
endif(UNIX)
if(WIN)
add_definitions("-DWIN_32")
endif(WIN)
if(APPLE)
add_definitions("-DMAC_OSX")
endif(APPLE)
TARGET_LINK_LIBRARIES(newlisp ffi m dl readline ncurses)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment