2014-05-16 08:30:31 -04:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
2014-05-14 12:47:52 -04:00
|
|
|
|
|
|
|
include_directories("${PROJECT_SOURCE_DIR}/include")
|
|
|
|
# install(TARGETS swiftnav-static DESTINATION lib${LIB_SUFFIX})
|
|
|
|
|
2014-05-16 08:51:30 -04:00
|
|
|
set(R3_SRCS node.c str.c list.c token.c edge.c)
|
2014-05-16 10:49:05 -04:00
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -pipe -g3 -funroll-loops -O0")
|
2014-05-16 10:41:19 -04:00
|
|
|
|
2014-05-16 10:05:23 -04:00
|
|
|
# set(LIBS ${LIBS} ${PCRE_LIBRARIES} ${Judy_LIBRARIES} ${Jemalloc_LIBRARIES} r3)
|
|
|
|
set(LIBS ${LIBS} ${PCRE_LIBRARIES} ${Jemalloc_LIBRARIES} r3)
|
2014-05-14 22:08:42 -04:00
|
|
|
|
2014-05-16 08:51:30 -04:00
|
|
|
# add_library(r3 SHARED ${R3_SRCS})
|
|
|
|
add_library(r3 STATIC ${R3_SRCS})
|
2014-05-16 02:05:51 -04:00
|
|
|
target_link_libraries(r3 ${LIBS})
|
2014-05-16 08:30:31 -04:00
|
|
|
install (TARGETS r3 DESTINATION lib)
|
2014-05-14 12:47:52 -04:00
|
|
|
# target_link_libraries(r3 cblas)
|
|
|
|
# install(FILES ${libswiftnav_HEADERS} DESTINATION include/libswiftnav)
|