mirror of
https://github.com/pgpointcloud/pointcloud.git
synced 2025-12-08 20:36:04 +00:00
On Ubuntu precise64, gcc/g++ 4.8, cmake 2.8.11.2, I get a link error between the static libpc and the (default shared) libpointcloud.so. This patch fixes the link error. Fixes #26
49 lines
1020 B
CMake
49 lines
1020 B
CMake
|
|
set ( PC_SOURCES
|
|
hashtable.c
|
|
stringbuffer.c
|
|
pc_bytes.c
|
|
pc_dimstats.c
|
|
pc_filter.c
|
|
pc_mem.c
|
|
pc_patch.c
|
|
pc_patch_dimensional.c
|
|
pc_patch_ght.c
|
|
pc_patch_uncompressed.c
|
|
pc_point.c
|
|
pc_pointlist.c
|
|
pc_schema.c
|
|
pc_stats.c
|
|
pc_util.c
|
|
pc_val.c
|
|
)
|
|
|
|
set ( PC_HEADERS
|
|
hashtable.h
|
|
stringbuffer.h
|
|
pc_api.h
|
|
pc_api_internal.h
|
|
pc_config.h
|
|
)
|
|
|
|
add_library (libpc-static STATIC ${PC_SOURCES} ${PC_HEADERS})
|
|
|
|
set_target_properties (libpc-static
|
|
PROPERTIES
|
|
OUTPUT_NAME "pc"
|
|
PREFIX "lib"
|
|
CLEAN_DIRECT_OUTPUT 1
|
|
COMPILE_FLAGS -fPIC
|
|
)
|
|
|
|
target_link_libraries (libpc-static xml2)
|
|
target_link_libraries (libpc-static z)
|
|
target_link_libraries (libpc-static m)
|
|
if (LIBGHT_FOUND)
|
|
target_link_libraries (libpc-static ght)
|
|
endif (LIBGHT_FOUND)
|
|
|
|
if (WITH_TESTS)
|
|
add_subdirectory (cunit)
|
|
endif (WITH_TESTS)
|