Files
medicallib/CMakeLists.txt
T
google-labs-jules[bot] 518277356a Rename the project from "MyLibrary" to "MedicalLib" to better reflect its intended purpose as a library for medical simulations.
- 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.
2025-08-18 09:02:01 +00:00

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)