Skip to content

Commit

Permalink
test CMakeLIsts support each test.cpp product bin alone
Browse files Browse the repository at this point in the history
  • Loading branch information
maodoutech committed Nov 17, 2016
1 parent 331afa8 commit 0363614
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions common/hash.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Copyright (c) 2016 Maodou.tech, Inc. All Rights Reserved
// Author: Zhang Shilong ([email protected])

#include "hash.h"

Expand Down
2 changes: 1 addition & 1 deletion common/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ inline uint32_t Hash(const std::string& str) {

} // namespace base

#endif // BASE_COMMON_HASH_H_
#endif
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ aux_source_directory(. test_file)

FOREACH(src ${test_file})
MESSAGE( ${src} )
add_executable(Demo ${src})
STRING( REPLACE "./" "" prj ${src})
STRING( REPLACE ".cpp" "" prj ${prj})
add_executable(${prj} ${src})
ENDFOREACH()

0 comments on commit 0363614

Please sign in to comment.