-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (29 loc) · 1.26 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.10)
project(InfernoML)
# Set C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Include directories
include_directories(include)
# Define libraries
add_library(InfernoML STATIC
src/algorithms/linear_regression.cpp
)
add_library(Kmeans STATIC
src/algorithms/kmeans.cpp
)
add_library(Activations STATIC
src/activation/activation_functions.cpp
)
# Define executables
add_executable(linear_regression_example examples/linear_regression_example.cpp)
add_executable(kmeans_functions_example examples/kmeans_functions_example.cpp)
add_executable(activation_functions_example examples/activation_functions_example.cpp)
# Link libraries to executables
target_link_libraries(linear_regression_example PRIVATE InfernoML)
target_link_libraries(activation_functions_example PRIVATE Activations)
target_link_libraries(kmeans_functions_example PRIVATE Kmeans)
# Ensure that include directories are added for the specific targets if necessary
target_include_directories(linear_regression_example PRIVATE ${PROJECT_SOURCE_DIR}/include)
target_include_directories(kmeans_functions_example PRIVATE ${PROJECT_SOURCE_DIR}/include)
target_include_directories(activation_functions_example PRIVATE ${PROJECT_SOURCE_DIR}/include)