-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve cmake and directory organization. #99
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5e5ef64
Move stuff to include/
martin-swift fad454e
Albatross include clean-up.
martin-swift a62c5ac
Move tuning code to tune directory.
akleeman 1fc47a3
remove set(CMAKE_CXX_FLAGS)
akleeman f23bee6
Use relative path between umbrella includes
akleeman 4b97834
Revert back to clang-3.8 since that comes with travis
akleeman f99223f
Martin's comments
akleeman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,60 @@ | ||
include_directories(SYSTEM "${PROJECT_SOURCE_DIR}/third_party/fast-cpp-csv-parser/") | ||
|
||
set(example_HEADERS | ||
example_utils.h | ||
sinc_example_utils.h | ||
CACHE INTERNAL "" | ||
) | ||
|
||
add_executable(sinc_example | ||
EXCLUDE_FROM_ALL | ||
sinc_example.cc | ||
) | ||
|
||
add_dependencies(sinc_example | ||
albatross | ||
) | ||
|
||
target_link_libraries(sinc_example m gflags pthread nlopt) | ||
sinc_example.cc | ||
) | ||
target_link_libraries(sinc_example | ||
albatross | ||
gflags | ||
pthread | ||
nlopt | ||
) | ||
add_custom_target(run_sinc_example | ||
DEPENDS sinc_example | ||
COMMAND sinc_example -input ${PROJECT_SOURCE_DIR}/examples/sinc_input.csv -output ./sinc_predictions.csv -tune | ||
COMMENT "Running sinc_example" | ||
) | ||
|
||
add_custom_target( | ||
run_sinc_example ALL | ||
DEPENDS ${example_HEADERS} | ||
COMMAND sinc_example -input ${PROJECT_SOURCE_DIR}/examples/sinc_input.csv -output ./sinc_predictions.csv -tune | ||
COMMENT "Running sinc_example" | ||
) | ||
|
||
add_dependencies(run_sinc_example | ||
sinc_example | ||
) | ||
|
||
add_executable(inspection_example | ||
EXCLUDE_FROM_ALL | ||
inspection.cc | ||
) | ||
|
||
add_dependencies(inspection_example | ||
albatross | ||
) | ||
|
||
target_link_libraries(inspection_example m gflags pthread) | ||
|
||
add_custom_target( | ||
run_inspection_example ALL | ||
DEPENDS ${example_HEADERS} | ||
COMMAND inspection_example -input ${PROJECT_SOURCE_DIR}/examples/inspection_input.csv | ||
COMMENT "Running inspection_example" | ||
) | ||
|
||
add_dependencies(run_inspection_example | ||
inspection_example | ||
) | ||
inspection.cc | ||
) | ||
target_link_libraries(inspection_example | ||
albatross | ||
gflags | ||
pthread | ||
) | ||
add_custom_target(run_inspection_example | ||
DEPENDS inspection_example | ||
COMMAND inspection_example -input ${PROJECT_SOURCE_DIR}/examples/inspection_input.csv | ||
COMMENT "Running inspection_example" | ||
) | ||
|
||
|
||
add_executable(temperature_example | ||
EXCLUDE_FROM_ALL | ||
temperature_example/temperature_example.cc | ||
) | ||
|
||
add_dependencies(temperature_example | ||
albatross | ||
) | ||
|
||
target_link_libraries(temperature_example m gflags pthread nlopt) | ||
|
||
add_custom_target( | ||
run_temperature_example ALL | ||
DEPENDS ${example_HEADERS} | ||
COMMAND temperature_example -input ${PROJECT_SOURCE_DIR}/examples/temperature_example/gsod.csv -predict ${PROJECT_SOURCE_DIR}/examples/temperature_example/prediction_locations.csv -output ./test_temperature_predictions.csv -thin 5 | ||
COMMENT "Running temperature_example" | ||
) | ||
temperature_example/temperature_example.cc | ||
) | ||
target_link_libraries(temperature_example | ||
albatross | ||
gflags | ||
pthread | ||
nlopt | ||
) | ||
add_custom_target(run_temperature_example | ||
DEPENDS temperature_example | ||
COMMAND temperature_example -input ${PROJECT_SOURCE_DIR}/examples/temperature_example/gsod.csv -predict ${PROJECT_SOURCE_DIR}/examples/temperature_example/prediction_locations.csv -output ./test_temperature_predictions.csv -thin 5 | ||
COMMENT "Running temperature_example" | ||
) | ||
|
||
add_dependencies(run_temperature_example | ||
temperature_example | ||
) | ||
|
||
add_executable(call_trace_example | ||
EXCLUDE_FROM_ALL | ||
call_trace_example.cc | ||
) | ||
|
||
add_dependencies(call_trace_example | ||
albatross | ||
) | ||
|
||
target_link_libraries(call_trace_example m gflags pthread) | ||
|
||
add_custom_target( | ||
run_call_trace_example ALL | ||
DEPENDS ${example_HEADERS} | ||
COMMAND call_trace_example | ||
COMMENT "Running call_trace_example" | ||
) | ||
|
||
add_dependencies(run_call_trace_example | ||
call_trace_example | ||
) | ||
call_trace_example.cc | ||
) | ||
target_link_libraries(call_trace_example | ||
albatross | ||
gflags | ||
pthread | ||
) | ||
add_custom_target(run_call_trace_example | ||
DEPENDS call_trace_example | ||
COMMAND call_trace_example | ||
COMMENT "Running call_trace_example" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
want to fix that too? take a look at what I did in orion...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just not pushed...?