Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to build static library. #21

Merged
merged 2 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ make
make install
```

Setting `-DBUILD_SHARED_LIBS=OFF` enables the generation of a static (`.a`) library.

## Code Style

This project enforces the PDAL code styles, which can checked as follows :
Expand Down
4 changes: 3 additions & 1 deletion source/pdal/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
set(TARGET pdalc)

option(BUILD_SHARED_LIBS "Build using shared libraries" ON)

find_package(PDAL REQUIRED CONFIG)
message(STATUS "Found PDAL ${PDAL_VERSION}")

Expand Down Expand Up @@ -38,7 +40,7 @@ include_directories(

add_definitions(${PDAL_DEFINITIONS})

add_library(${TARGET} SHARED ${SOURCES} ${HEADERS})
add_library(${TARGET} ${SOURCES} ${HEADERS})

string(TOUPPER "${TARGET}_BUILD_DLL" BUILD_SYMBOL)

Expand Down
Loading