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
41c80e9c
Commit
41c80e9c
authored
Oct 12, 2014
by
Ahmed Charles
Committed by
Joshua Warner
Oct 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cmake build.
parent
c2e48e4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
CMakeLists.txt
c++/CMakeLists.txt
+2
-3
CMakeLists.txt
c++/src/CMakeLists.txt
+4
-5
No files found.
c++/CMakeLists.txt
View file @
41c80e9c
...
...
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
set
(
CMAKE_CXX_FLAGS
"-Wall -Wextra -Wno-unused-parameter -std=c++11"
)
if
(
EXISTS
"
${
dir
}
"
AND IS_DIRECTORY
"
${
dir
}
"
)
if
(
EXISTS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gtest"
AND IS_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gtest
"
)
add_subdirectory
(
gtest
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/gtest/include
)
else
()
...
...
@@ -12,4 +12,4 @@ endif()
include
(
CTest
)
add_subdirectory
(
src
)
\ No newline at end of file
add_subdirectory
(
src
)
c++/src/CMakeLists.txt
View file @
41c80e9c
...
...
@@ -75,11 +75,10 @@ add_executable(capnp-tool
)
target_link_libraries
(
capnp-tool capnpc capnp kj
)
add_executable
(
capnp-c++
add_executable
(
capnp
c
-c++
capnp/compiler/capnpc-c++.c++
)
target_link_libraries
(
capnp-c++ capnp kj
)
get_property
(
capnp-c++_location TARGET capnp-c++ PROPERTY LOCATION
)
target_link_libraries
(
capnpc-c++ capnp kj
)
set
(
test_capnp_files
capnp/test.capnp
...
...
@@ -106,11 +105,11 @@ add_custom_command(
${
test_capnp_cpp_files
}
${
test_capnp_header_files
}
COMMAND capnp-tool compile
-o
$
{
capnp-c++_location
}
-o $
<TARGET_FILE:capnpc-c++>
--src-prefix=
${
CMAKE_CURRENT_SOURCE_DIR
}
-I
${
CMAKE_CURRENT_SOURCE_DIR
}
${
test_capnp_capnp_files
}
DEPENDS capnp-tool capnp-c++
${
test_capnp_files
}
)
DEPENDS capnp-tool capnp
c
-c++
${
test_capnp_files
}
)
add_library
(
capnp_test_lib
${
test_capnp_cpp_files
}
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
...
...
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