Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
83561f05
Commit
83561f05
authored
Aug 31, 2016
by
biojppm
Committed by
Dominic Hamon
Aug 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: add headers to the list of source files. (#284)
cmake does not require this, but IDEs such as VisualStudio or QtCreator need this to add the headers to the generated project.
parent
61f570e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
CMakeLists.txt
src/CMakeLists.txt
+12
-0
CMakeLists.txt
test/CMakeLists.txt
+1
-1
No files found.
src/CMakeLists.txt
View file @
83561f05
...
...
@@ -11,6 +11,18 @@ set(SOURCE_FILES "benchmark.cc" "colorprint.cc" "commandlineflags.cc"
"console_reporter.cc"
"csv_reporter.cc"
"json_reporter.cc"
"log.cc"
"reporter.cc"
"sleep.cc"
"string_util.cc"
"sysinfo.cc"
"walltime.cc"
"complexity.cc"
)
# Add headers to the list of source files. cmake does not require this,
# but IDEs such as Visual Studio need this to add the headers
# to the generated project.
set
(
_d
"
${
PROJECT_SOURCE_DIR
}
/include/benchmark"
)
list
(
APPEND SOURCE_FILES
"
${
_d
}
/benchmark.h"
"
${
_d
}
/benchmark_api.h"
"
${
_d
}
/macros.h"
"
${
_d
}
/reporter.h"
"arraysize.h"
"check.h"
"colorprint.h"
"commandlineflags.h"
"complexity.h"
"cycleclock.h"
"internal_macros.h"
"log.h"
"mutex.h"
"re.h"
"sleep.h"
"stat.h"
"string_util.h"
"sysinfo.h"
"walltime.h"
)
unset
(
_d
)
# Determine the correct regular expression engine to use
if
(
HAVE_STD_REGEX
)
set
(
RE_FILES
"re_std.cc"
)
...
...
test/CMakeLists.txt
View file @
83561f05
...
...
@@ -17,7 +17,7 @@ endmacro(compile_benchmark_test)
macro
(
compile_output_test name
)
add_executable
(
${
name
}
"
${
name
}
.cc"
)
add_executable
(
${
name
}
"
${
name
}
.cc"
output_test.h
)
target_link_libraries
(
${
name
}
output_test_helper benchmark
${
BENCHMARK_CXX_LIBRARIES
}
${
CMAKE_THREAD_LIBS_INIT
}
)
endmacro
(
compile_output_test
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment