| 1 |
project(h2benchmark C) |
| 2 |
|
| 3 |
file(GLOB H2BENCHMARK_SRC |
| 4 |
"*.c" |
| 5 |
) |
| 6 |
|
| 7 |
set(PROJECT_NAME h2benchmark) |
| 8 |
add_executable(${PROJECT_NAME} ${H2BENCHMARK_SRC}) |
| 9 |
aws_set_common_properties(${PROJECT_NAME}) |
| 10 |
|
| 11 |
target_link_libraries(${PROJECT_NAME} aws-c-http) |
| 12 |
|
| 13 |
if (BUILD_SHARED_LIBS AND NOT WIN32) |
| 14 |
message(INFO " h2benchmark will be built with shared libs, but you may need to set LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib to run the application") |
| 15 |
endif() |
| 16 |
|
| 17 |
install(TARGETS ${PROJECT_NAME} |
| 18 |
EXPORT ${PROJECT_NAME}-targets |
| 19 |
COMPONENT Runtime |
| 20 |
RUNTIME |
| 21 |
DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 22 |
COMPONENT Runtime) |