Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # make both shared and static libraries
- # https://stackoverflow.com/a/29824424/5066426
- add_library(objlib OBJECT ${BWAPIC_SRC})
- set_property(TARGET ${objlib} PROPERTY POSITION_INDEPENDENT_CODE 1)
- add_library(BWAPIC_shared SHARED $<TARGET_OBJECTS:objlib>)
- add_library(BWAPIC_static STATIC $<TARGET_OBJECTS:objlib>)
- #add_library(BWAPIC_shared SHARED ${BWAPIC_SRC})
- #add_library(BWAPIC_static STATIC ${BWAPIC_SRC})
- target_include_directories(BWAPIC_shared SYSTEM PUBLIC include/ ${BWAPI_INCLUDE_DIRS})
- target_include_directories(BWAPIC_static SYSTEM PUBLIC include/ ${BWAPI_INCLUDE_DIRS})
- target_link_libraries(BWAPIC_shared PRIVATE BWAPI BWAPIClient)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement