Skip to content

Commit

Permalink
Martin's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
akleeman committed Mar 28, 2019
1 parent 4b97834 commit f99223f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 24 deletions.
24 changes: 3 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@ target_include_directories(albatross SYSTEM INTERFACE

include(${PROJECT_SOURCE_DIR}/cmake/FindGFlags.cmake)

add_subdirectory(tests)
add_subdirectory(examples)

set(albatross_BINARIES
albatross_unit_tests
sinc_example
temperature_example
call_trace_example
inspection_example
)


set(albatross_COMPILE_OPTIONS
-Werror
-Wall
Expand Down Expand Up @@ -78,12 +66,6 @@ set(albatross_COMPILE_OPTIONS
-Wvolatile-register-var
-Wwrite-strings
)
set_target_properties(
${albatross_BINARIES}
PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
)
foreach(TARGET IN LISTS albatross_BINARIES)
target_compile_options(${TARGET} PRIVATE ${albatross_COMPILE_OPTIONS})
endforeach()

add_subdirectory(tests)
add_subdirectory(examples)
19 changes: 19 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,22 @@ add_custom_target(run_call_trace_example
COMMAND call_trace_example
COMMENT "Running call_trace_example"
)

set(albatross_example_BINARIES
sinc_example
temperature_example
call_trace_example
inspection_example
)


set_target_properties(
${albatross_example_BINARIES}
PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
)
foreach(TARGET IN LISTS albatross_example_BINARIES)
target_compile_options(${TARGET} PRIVATE ${albatross_COMPILE_OPTIONS})
endforeach()

3 changes: 2 additions & 1 deletion examples/sinc_example_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
#ifndef ALBATROSS_SINC_EXAMPLE_UTILS_H
#define ALBATROSS_SINC_EXAMPLE_UTILS_H

#include "example_utils.h"
#include <albatross/GP>

#include "example_utils.h"

namespace albatross {

class SlopeTerm : public CovarianceFunction<SlopeTerm> {
Expand Down
12 changes: 10 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_executable(albatross_unit_tests
EXCLUDE_FROM_ALL
add_executable(albatross_unit_tests EXCLUDE_FROM_ALL
test_call_trace.cc
test_core_dataset.cc
test_core_distribution.cc
Expand Down Expand Up @@ -52,3 +51,12 @@ add_custom_target(run_albatross_unit_tests ALL
add_dependencies(run_albatross_unit_tests
albatross_unit_tests
)

set_target_properties(
albatross_unit_tests
PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
)

target_compile_options(albatross_unit_tests PRIVATE ${albatross_COMPILE_OPTIONS})

0 comments on commit f99223f

Please sign in to comment.