forked from Vibr8gKiwi/bazaarBot2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
22 lines (16 loc) · 893 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
22 lines (16 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 17)
############# LIBRARY ############
project(OuterSpatialEngine)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
add_library(OuterSpatialEngine outerspatial_engine.h traders/AI_trader.h common/agent.h common/messages.h auction/auction_house.h metrics/logger.h traders/inventory.h common/commodity.h common/history.h traders/roles.h traders/fake_trader.h metrics/display.h common/concurrency.h traders/human_trader.h)
set_target_properties(OuterSpatialEngine PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(OuterSpatialEngine PRIVATE Threads::Threads)
############# DRIVER ############
# Add main.cpp file of project root directory as source file
add_executable(driver main.cc)
target_compile_features(driver PRIVATE cxx_std_17)
target_link_libraries(driver PRIVATE
Threads::Threads
)