-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (25 loc) · 956 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
30
31
32
33
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
cmake_minimum_required(VERSION 3.14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -pthread")
project(gene VERSION 1.0 LANGUAGES CXX)
# Executable will be in ../bin
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/../bin)
set(
SOURCES
gene.cpp
networking.cpp
gene_random.cpp
evalution.cpp
)
add_executable(gene_server server.cpp ${SOURCES})
add_executable(gene_client client.cpp ${SOURCES})
find_package(Boost 1.67 REQUIRED COMPONENTS system thread filesystem regex)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIR})
#target_link_libraries(gene ${Boost_LIBRARIES})
# Import Microsoft SEAL
find_package(SEAL 3.3.0 EXACT REQUIRED)
# Link Microsoft SEAL
target_link_libraries(gene_client SEAL::seal ${Boost_LIBRARIES})
target_link_libraries(gene_server SEAL::seal ${Boost_LIBRARIES})