-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
30 lines (19 loc) · 863 Bytes
/
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
cmake_minimum_required (VERSION 3.8)
set (Project_Name CryptoGL)
project (${Project_Name})
set (CMAKE_CXX_COMPILER "/usr/bin/g++-11")
set (CMAKE_CXX_FLAGS "-Winline -Wall -Werror -pedantic-errors -pthread -std=c++1z")
# Add the source files code (CPP, HPP and the CMakeLists.txt).
add_subdirectory (src)
#Include the unit test source file headers.
#enable_testing()
include_directories (UnitTests)
# Target the project name to be built.
add_executable(${Project_Name} src/main.cpp)
# Link the src librairy to the project.
target_link_libraries (${Project_Name} cryptoGL)
# Link the big_integers librairy to the project.
target_link_libraries (${Project_Name} big_integers)
# Link the UnitTests librairy to the project.
#target_link_libraries (${Project_Name} CryptoGL_UnitTests)
#add_test(CryptoGL_UnitTests ${Project_Name})