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:30:31 -04:00
|
|
|
set(R3_SRCS node.c str.c list.c token.c)
|
2014-05-14 22:08:42 -04:00
|
|
|
set(CMAKE_CFLAGS "-Wall -pipe -g3 -funroll-loops")
|
2014-05-16 02:05:51 -04:00
|
|
|
set(LIBS ${LIBS} ${PCRE_LIBRARIES} ${Judy_LIBRARIES} ${Jemalloc_LIBRARIES} r3)
|
2014-05-14 22:08:42 -04:00
|
|
|
|
|
|
|
# add_library(r3-static STATIC ${libr3_SRCS})
|
2014-05-16 08:30:31 -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)
|