cmake-library/CMakeLists.txt

7 lines
311 B
CMake
Raw Normal View History

2023-09-02 18:21:00 +00:00
cmake_minimum_required(VERSION 3.10)
project(MyNewLibrary VERSION 1.0
DESCRIPTION "CHOOSE YOUR DESCRIPTION")
#add_subdirectory(project2)
add_library(${PROJECT_NAME} src/add.c)
target_include_directories(${PROJECT_NAME} PUBLIC include)
#target_link_libraries(${PROJECT_NAME} PUBLIC yourlibrary)