-
Notifications
You must be signed in to change notification settings - Fork 82
/
CMakeLists.txt
51 lines (43 loc) · 1.12 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.1)
add_executable(
http_bidder_test
http_bidder_test.cpp
)
add_executable(
multi_bidder
multi_bidder.cpp
)
if (WIN32)
target_compile_definitions(http_bidder_test PRIVATE JSON_SO=1 _LIB JSON_COMPILING=1)
target_compile_definitions(multi_bidder PRIVATE JSON_SO=1 _LIB JSON_COMPILING=1)
target_compile_definitions(jsonv PRIVATE JSON_SO=1 _LIB JSON_COMPILING=1)
endif(WIN32)
target_link_libraries(
http_bidder_test
crud_service
vanilla_rtb
jsonv
parsers
${Boost_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${RT_LIB}
)
target_link_libraries(
multi_bidder
crud_service
vanilla_rtb
jsonv
${Boost_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${RT_LIB}
)
install(TARGETS http_bidder_test multi_bidder
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
)
add_custom_target(
generator
COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR}/generator && python ad.py && python campaign_budget.py > ../data/campaign_budget
)
add_dependencies(http_bidder_test generator)
add_dependencies(multi_bidder generator)