Skip to content

added static library target#92

Open
camradeling wants to merge 1 commit intoniXman:masterfrom
camradeling:static_library
Open

added static library target#92
camradeling wants to merge 1 commit intoniXman:masterfrom
camradeling:static_library

Conversation

@camradeling
Copy link

With this tiny change one can easily integrate this repo as a submodule without need to build it complete and modifying source lists.

Example of top level repo CMakeLists.txt:

include_directories(
./binapi/include
)

add_subdirectory(binapi EXCLUDE_FROM_ALL)

add_executable(
${PROJECT_NAME}
#
main.cpp
)

add_dependencies(${PROJECT_NAME}
binapi_static
)

target_link_directories(${PROJECT_NAME}
PUBLIC
${CMAKE_BINARY_DIR}/binapi
)

target_link_libraries(${PROJECT_NAME}
libbinapi_static.a
z
crypto
ssl
pthread
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant