18 lines
538 B
CMake
18 lines
538 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
# Set the project name
|
|
project(ac VERSION 1.0 LANGUAGES CXX)
|
|
|
|
# Set the C++ standard
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
|
|
# Add source files
|
|
file(GLOB SOURCES "src/utils/*.cpp" "src/types/*.cpp")
|
|
|
|
# Add an shared library target
|
|
add_library(ac SHARED ${SOURCES})
|
|
|
|
# Optionally, if you have any additional include directories or libraries, add them here:
|
|
# target_include_directories(ac PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
|
# target_link_libraries(ac PRIVATE some_library)
|