Created
April 10, 2012 14:25
-
-
Save wendal/2351735 to your computer and use it in GitHub Desktop.
cmake for newLISP -- newLISP的CMake配置文件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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