Setup visibility handling for librotgen components
See merge request oss/rotgen!13
This commit is contained in:
parent
cae9d2cfa6
commit
70b6770389
11 changed files with 71 additions and 27 deletions
|
|
@ -60,13 +60,17 @@ find_package (Eigen3 3.4 REQUIRED NO_MODULE)
|
|||
##======================================================================================================================
|
||||
## Setup the library's build
|
||||
##======================================================================================================================
|
||||
if(NOT MSVC)
|
||||
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||
endif()
|
||||
|
||||
add_library(rotgen SHARED ${SOURCES})
|
||||
|
||||
set_target_properties(rotgen PROPERTIES VERSION ${PROJECT_VERSION})
|
||||
set_target_properties(rotgen PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR})
|
||||
|
||||
target_compile_options(rotgen PUBLIC -std=c++20 -Werror -Wall -Wextra -Wshadow -Wunused-variable)
|
||||
target_compile_definitions(rotgen PUBLIC ${ROTGEN_COMPILE_DEFS})
|
||||
set_target_properties(rotgen PROPERTIES EXPORT_NAME rotgen)
|
||||
add_library(rotgen::rotgen ALIAS rotgen)
|
||||
|
||||
target_include_directories(rotgen PUBLIC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue