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
0a1593b0
Commit
0a1593b0
authored
Feb 06, 2014
by
Dominic Hamon
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8 from dcoeurjo/cmakeFix
Cmake edit with 'make install' target
parents
be84ed03
22f436ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
CMakeLists.txt
CMakeLists.txt
+12
-6
No files found.
CMakeLists.txt
View file @
0a1593b0
cmake_minimum_required
(
VERSION 2.8
)
cmake_minimum_required
(
VERSION 2.8
)
project
(
benchmark
)
project
(
benchmark
)
find_package
(
Threads
)
find_package
(
Threads REQUIRED
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/bin
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/lib
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/lib
)
set
(
CMAKE_CXX_FLAGS
"-Wall -Werror -pedantic-errors --std=c++0x"
)
set
(
CMAKE_CXX_FLAGS
"-Wall -Werror -pedantic-errors --std=c++0x"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g -O0 -DDEBUG"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g -O0 -DDEBUG"
)
...
@@ -32,7 +28,6 @@ endif()
...
@@ -32,7 +28,6 @@ endif()
# Set up directories
# Set up directories
include_directories
(
${
PROJECT_SOURCE_DIR
}
/include
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/include
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/src
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/src
)
link_directories
(
${
PROJECT_SOURCE_DIR
}
/lib
)
# Build the targets
# Build the targets
FILE
(
GLOB SOURCE_FILES
"src/*.cc"
)
FILE
(
GLOB SOURCE_FILES
"src/*.cc"
)
...
@@ -41,3 +36,13 @@ add_library(benchmark STATIC ${SOURCE_FILES})
...
@@ -41,3 +36,13 @@ add_library(benchmark STATIC ${SOURCE_FILES})
add_executable
(
benchmark_test test/benchmark_test.cc
)
add_executable
(
benchmark_test test/benchmark_test.cc
)
target_link_libraries
(
benchmark_test benchmark
${
CMAKE_THREAD_LIBS_INIT
}
)
target_link_libraries
(
benchmark_test benchmark
${
CMAKE_THREAD_LIBS_INIT
}
)
# Install target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
INSTALL
(
TARGETS benchmark
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
COMPONENT library
)
INSTALL
(
DIRECTORY
"
${
PROJECT_SOURCE_DIR
}
/include/benchmark"
DESTINATION include
FILES_MATCHING PATTERN
"*.*h"
)
\ No newline at end of file
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