Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
0f9a4777
Commit
0f9a4777
authored
Nov 24, 2014
by
Philip Quinn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Add support for CAPNP_LITE version of kj to support MSVC builds.
parent
8d9e8a0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
18 deletions
+26
-18
CMakeLists.txt
c++/src/kj/CMakeLists.txt
+26
-18
No files found.
c++/src/kj/CMakeLists.txt
View file @
0f9a4777
# kj ===========================================================================
set
(
kj_sources
common.c++
units.c++
memory.c++
refcount.c++
set
(
kj_sources_lite
array.c++
string.c++
string-tree.c++
exception.c++
common.c++
debug.c++
arena
.c++
exception
.c++
io.c++
memory.c++
mutex.c++
string.c++
thread.c++
)
set
(
kj_sources_heavy
units.c++
refcount.c++
string-tree.c++
arena.c++
main.c++
parse/char.c++
)
if
(
NOT CAPNP_LITE
)
set
(
kj_sources
${
kj_sources_lite
}
${
kj_sources_heavy
}
)
else
()
set
(
kj_sources
${
kj_sources_lite
}
)
endif
()
set
(
kj_headers
common.h
units.h
...
...
@@ -81,21 +89,14 @@ if(BUILD_TESTING)
add_executable
(
kj-tests
common-test.c++
memory-test.c++
refcount-test.c++
array-test.c++
string-test.c++
string-tree-test.c++
exception-test.c++
debug-test.c++
arena-test.c++
units-test.c++
tuple-test.c++
one-of-test.c++
function-test.c++
io-test.c++
mutex-test.c++
threadlocal-test.c++
threadlocal-pthread
-test.c++
std/iostream
-test.c++
)
# TODO: Link with librt on Solaris for sched_yield
target_link_libraries
(
kj-tests kj gtest gtest_main
)
...
...
@@ -107,9 +108,16 @@ if(BUILD_TESTING)
async-test.c++
async-unix-test.c++
async-io-test.c++
refcount-test.c++
string-tree-test.c++
arena-test.c++
units-test.c++
tuple-test.c++
one-of-test.c++
function-test.c++
threadlocal-pthread-test.c++
parse/common-test.c++
parse/char-test.c++
std/iostream-test.c++
)
target_link_libraries
(
kj-heavy-tests kj kj-async gtest gtest_main
)
add_dependencies
(
check kj-heavy-tests
)
...
...
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