1
0
Files
libcmo21/BMap/CMakeLists.txt
yyc12345 f9ab66dfc2 chore: update build script
- change project layout for better understanding.
- update build script for more close to standard cmake way.
2026-01-24 17:16:13 +08:00

38 lines
583 B
CMake

# Create shared library
add_library(BMap SHARED "")
# Setup sources
target_sources(BMap
PRIVATE
BMap.cpp
BMExports.cpp
)
# Setup headers
target_sources(BMap
PRIVATE
FILE_SET HEADERS
FILES
BMap.hpp
BMExports.hpp
)
# Setup header infomation
target_include_directories(BMap
PRIVATE
"${CMAKE_CURRENT_LIST_DIR}"
)
# Setup linked library infomation
target_link_libraries(BMap
PRIVATE
YYCC::YYCCommonplace
LibCmo
)
# Enable export macro
target_compile_definitions(BMap
PRIVATE
BMAP_EXPORTING
)
# Install BMap
install(TARGETS BMap
RUNTIME DESTINATION ${NEMO_INSTALL_BIN_PATH}
)