Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
d69991fa
Commit
d69991fa
authored
Nov 11, 2014
by
Andriy Senkovych
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set separate directory to place binaries
parent
5cceb9e3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
CMakeLists.txt
CMakeLists.txt
+3
-0
CMakeLists.txt
example/CMakeLists.txt
+1
-1
CMakeLists.txt
test/perftest/CMakeLists.txt
+1
-1
CMakeLists.txt
test/unittest/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
d69991fa
...
...
@@ -11,6 +11,9 @@ set(LIB_VERSION_STRING "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_PATCH_VE
# compile in release with debug info mode by default
SET
(
CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Build Type"
)
# Build all binaries in a separate directory
SET
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/bin
)
option
(
RAPIDJSON_BUILD_DOC
"Build rapidjson documentation."
ON
)
option
(
RAPIDJSON_BUILD_EXAMPLES
"Build rapidjson examples."
ON
)
option
(
RAPIDJSON_BUILD_TESTS
"Build rapidjson perftests and unittests."
ON
)
...
...
example/CMakeLists.txt
View file @
d69991fa
...
...
@@ -15,5 +15,5 @@ set(EXAMPLES
tutorial
)
foreach
(
example
${
EXAMPLES
}
)
add_executable
(
${
example
}
_
${
example
}
/
${
example
}
.cpp
)
add_executable
(
${
example
}
${
example
}
/
${
example
}
.cpp
)
endforeach
()
test/perftest/CMakeLists.txt
View file @
d69991fa
...
...
@@ -7,5 +7,5 @@ set(PERFTEST_SOURCES
add_executable
(
perftest
${
PERFTEST_SOURCES
}
)
target_link_libraries
(
perftest
${
TEST_LIBRARIES
}
)
add_test
(
NAME perftest
COMMAND
${
CMAKE_
CURRENT_BINARY_DIR
}
/perftest
COMMAND
${
CMAKE_
RUNTIME_OUTPUT_DIRECTORY
}
/perftest
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/bin
)
test/unittest/CMakeLists.txt
View file @
d69991fa
...
...
@@ -13,5 +13,5 @@ set(UNITTEST_SOURCES
add_executable
(
unittest
${
UNITTEST_SOURCES
}
)
target_link_libraries
(
unittest
${
TEST_LIBRARIES
}
)
add_test
(
NAME unittest
COMMAND
${
CMAKE_
CURRENT_BINARY_DIR
}
/unittest
COMMAND
${
CMAKE_
RUNTIME_OUTPUT_DIRECTORY
}
/unittest
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/bin
)
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