diff options
author | ipkn <ipknhama@gmail.com> | 2014-08-14 19:22:02 -0400 |
---|---|---|
committer | ipkn <ipknhama@gmail.com> | 2014-08-14 19:22:02 -0400 |
commit | b70a190077638182096630f255925582f6f422f3 (patch) | |
tree | 40e1e0836228525ec71406973df4041203bcbf77 /examples | |
parent | 9ca93dc799257bf52331bf83493e49aabc176d29 (diff) | |
download | crow-b70a190077638182096630f255925582f6f422f3.tar.gz crow-b70a190077638182096630f255925582f6f422f3.zip |
tcmalloc linking added
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 031cc04..0c3d9bd 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -4,6 +4,11 @@ project (crow_examples) add_executable(example example.cpp) #target_link_libraries(example crow) target_link_libraries(example ${Boost_LIBRARIES} ) + +if (Tcmalloc_FOUND) +target_link_libraries(example ${Tcmalloc_LIBRARIES}) +endif(Tcmalloc_FOUND) + add_custom_command(OUTPUT example_test.py COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/example_test.py ${CMAKE_CURRENT_BINARY_DIR}/example_test.py @@ -20,3 +25,6 @@ add_custom_command(OUTPUT example_chat.html DEPENDS ${PROJECT_SOURCE_DIR}/example_chat.html ) add_custom_target(example_chat_copy ALL DEPENDS example_chat.html) + +SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -pg" ) +SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -g -pg" ) |