518277356a
- Rename all files, directories, and internal project names to "MedicalLib". - Replace the generic `add` function with a more domain-specific `calculateBMI` function as an initial example of the library's capabilities. - Update the `AGENTS.md` file to describe the new purpose and scope of the MedicalLib library.
25 lines
709 B
CMake
25 lines
709 B
CMake
# CMake minimum version
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
# Project name
|
|
project(MedicalLib)
|
|
|
|
# Add the library
|
|
add_library(MedicalLib SHARED src/MedicalLib.cpp)
|
|
|
|
# Define MEDICAL_LIB_EXPORT, so that __declspec(dllexport) is used
|
|
target_compile_definitions(MedicalLib PRIVATE MEDICAL_LIB_EXPORT)
|
|
|
|
# Public headers
|
|
target_include_directories(MedicalLib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
# Set the output directory for the library
|
|
set_target_properties(MedicalLib PROPERTIES
|
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
)
|
|
|
|
# Add the examples subdirectory
|
|
add_subdirectory(examples)
|