r3/src/CMakeLists.txt

16 lines
581 B
Text
Raw Normal View History

2014-05-16 08:30:31 -04:00
cmake_minimum_required(VERSION 2.8)
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-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
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)
# target_link_libraries(r3 cblas)
# install(FILES ${libswiftnav_HEADERS} DESTINATION include/libswiftnav)