Fix cmake build

This commit is contained in:
c9s 2015-03-05 11:45:39 +08:00
parent 85f1b218a5
commit 3a62cb6559

View file

@ -1,8 +1,9 @@
include_directories("${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/3rdparty ${PROJECT_SOURCE_DIR}")
# install(TARGETS swiftnav-static DESTINATION lib${LIB_SUFFIX})
find_package(PCRE REQUIRED)
set(libr3_SRCS node.c edge.c list.c slug.c str.c token.c match_entry.c)
set(LIBS ${LIBS} ${PCRE_LIBRARIES} r3)
set(libr3_SRCS node.c edge.c list.c slug.c str.c token.c)
# add_library(r3 STATIC ${libr3_SRCS})
add_library(r3 STATIC ${libr3_SRCS})
target_link_libraries(r3 lib3rdparty)
target_link_libraries(r3 lib3rdparty pcre)
# install(FILES ${libswiftnav_HEADERS} DESTINATION include/libswiftnav)