Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
295ebf8e
Commit
295ebf8e
authored
Mar 25, 2019
by
Mccaskey, Alex
Browse files
fixing cppms build bug
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
1ca6e9f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
quantum/aqc/CMakeLists.txt
View file @
295ebf8e
...
...
@@ -20,6 +20,12 @@ file(GLOB SRC
*.cpp
ir/*.cpp
compiler/default/*.cpp
)
# Set up dependencies to resources to track changes
usfunctiongetresourcesource
(
TARGET
${
LIBRARY_NAME
}
OUT SRC
)
# Generate bundle initialization code
usfunctiongeneratebundleinit
(
TARGET
${
LIBRARY_NAME
}
OUT SRC
)
add_library
(
${
LIBRARY_NAME
}
SHARED
${
SRC
}
)
target_include_directories
(
${
LIBRARY_NAME
}
...
...
@@ -29,12 +35,6 @@ target_include_directories(${LIBRARY_NAME}
${
CMAKE_SOURCE_DIR
}
/quantum/utils
${
CMAKE_SOURCE_DIR
}
/tpls/exprtk
${
CMAKE_BINARY_DIR
}
)
# Set up dependencies to resources to track changes
usfunctiongetresourcesource
(
TARGET
${
LIBRARY_NAME
}
OUT SRC
)
# Generate bundle initialization code
usfunctiongeneratebundleinit
(
TARGET
${
LIBRARY_NAME
}
OUT SRC
)
# ----
set
(
_bundle_name xacc_quantum_aqc
)
...
...
quantum/gate/CMakeLists.txt
View file @
295ebf8e
...
...
@@ -11,13 +11,6 @@
# */
set
(
LIBRARY_NAME xacc-quantum-gate
)
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/utils)
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ir)
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/compiler)
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ir/instructions)
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ir/algorithms)
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ir/transformations)
# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/accelerator)
file
(
GLOB_RECURSE HEADERS *.hpp
)
file
(
GLOB SRC
...
...
@@ -29,6 +22,14 @@ file(GLOB SRC
utils/*.cpp
ir/algorithms/*.cpp
ir/transformations/*.cpp
)
# Set up dependencies to resources to track changes
usFunctionGetResourceSource
(
TARGET
${
LIBRARY_NAME
}
OUT SRC
)
# Generate bundle initialization code
usFunctionGenerateBundleInit
(
TARGET
${
LIBRARY_NAME
}
OUT SRC
)
add_library
(
${
LIBRARY_NAME
}
SHARED
${
SRC
}
)
target_include_directories
(
${
LIBRARY_NAME
}
...
...
@@ -42,12 +43,7 @@ target_include_directories(${LIBRARY_NAME}
${
CMAKE_SOURCE_DIR
}
/quantum/utils
${
CMAKE_SOURCE_DIR
}
/tpls/exprtk
${
CMAKE_SOURCE_DIR
}
/tpls/rapidjson/include
)
# Set up dependencies to resources to track changes
usfunctiongetresourcesource
(
TARGET
${
LIBRARY_NAME
}
OUT SRC
)
# Generate bundle initialization code
usfunctiongeneratebundleinit
(
TARGET
${
LIBRARY_NAME
}
OUT SRC
)
set
(
_bundle_name xacc_quantum_gate
)
set_target_properties
(
${
LIBRARY_NAME
}
PROPERTIES
# This is required for every bundle
...
...
@@ -58,7 +54,7 @@ set_target_properties(${LIBRARY_NAME}
US_BUNDLE_NAME
${
_bundle_name
}
)
# Embed meta-data from a manifest.json file
us
f
unction
e
mbed
r
esources
(
TARGET
us
F
unction
E
mbed
R
esources
(
TARGET
${
LIBRARY_NAME
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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