Commit 0f9a4777 authored by Philip Quinn's avatar Philip Quinn

CMake: Add support for CAPNP_LITE version of kj to support MSVC builds.

parent 8d9e8a0f
# kj =========================================================================== # kj ===========================================================================
set(kj_sources set(kj_sources_lite
common.c++
units.c++
memory.c++
refcount.c++
array.c++ array.c++
string.c++ common.c++
string-tree.c++
exception.c++
debug.c++ debug.c++
arena.c++ exception.c++
io.c++ io.c++
memory.c++
mutex.c++ mutex.c++
string.c++
thread.c++ thread.c++
)
set(kj_sources_heavy
units.c++
refcount.c++
string-tree.c++
arena.c++
main.c++ main.c++
parse/char.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 set(kj_headers
common.h common.h
units.h units.h
...@@ -81,21 +89,14 @@ if(BUILD_TESTING) ...@@ -81,21 +89,14 @@ if(BUILD_TESTING)
add_executable(kj-tests add_executable(kj-tests
common-test.c++ common-test.c++
memory-test.c++ memory-test.c++
refcount-test.c++
array-test.c++ array-test.c++
string-test.c++ string-test.c++
string-tree-test.c++
exception-test.c++ exception-test.c++
debug-test.c++ debug-test.c++
arena-test.c++
units-test.c++
tuple-test.c++
one-of-test.c++
function-test.c++
io-test.c++ io-test.c++
mutex-test.c++ mutex-test.c++
threadlocal-test.c++ threadlocal-test.c++
threadlocal-pthread-test.c++ std/iostream-test.c++
) )
# TODO: Link with librt on Solaris for sched_yield # TODO: Link with librt on Solaris for sched_yield
target_link_libraries(kj-tests kj gtest gtest_main) target_link_libraries(kj-tests kj gtest gtest_main)
...@@ -107,9 +108,16 @@ if(BUILD_TESTING) ...@@ -107,9 +108,16 @@ if(BUILD_TESTING)
async-test.c++ async-test.c++
async-unix-test.c++ async-unix-test.c++
async-io-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/common-test.c++
parse/char-test.c++ parse/char-test.c++
std/iostream-test.c++
) )
target_link_libraries(kj-heavy-tests kj kj-async gtest gtest_main) target_link_libraries(kj-heavy-tests kj kj-async gtest gtest_main)
add_dependencies(check kj-heavy-tests) add_dependencies(check kj-heavy-tests)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment