Skip to content

Commit

Permalink
CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
taehyounpark committed Apr 1, 2024
1 parent 53e42a3 commit 0edf7e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 11 additions & 3 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
if (QUERYOSITY_EXAMPLES)
if(QUERYOSITY_EXAMPLES)

install(FILES ${CMAKE_SOURCE_DIR}/data/data.json
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)

install(FILES ${CMAKE_SOURCE_DIR}/data/data.csv
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)

add_executable(example-hello_world ./example-hello_world.cxx)
target_compile_features(example-hello_world PUBLIC cxx_std_17)
target_link_libraries(example-hello_world queryosity::extensions pthread ${Boost_LIBRARIES})
target_link_libraries(example-hello_world queryosity::extensions pthread
${Boost_LIBRARIES})
add_test(NAME example-hello_world COMMAND example-hello_world)

add_executable(example-multiple_datasets ./example-multiple_datasets.cxx)
target_compile_features(example-multiple_datasets PUBLIC cxx_std_17)
target_link_libraries(example-multiple_datasets queryosity::extensions pthread ${Boost_LIBRARIES})
target_link_libraries(example-multiple_datasets queryosity::extensions
pthread ${Boost_LIBRARIES})
add_test(NAME example-multiple_datasets COMMAND example-multiple_datasets)

endif()
3 changes: 0 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
if (QUERYOSITY_TESTS)

install(FILES ${CMAKE_SOURCE_DIR}/data/data.json
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/
)
#add_executable(test-definition ./test-definition.cxx)
#target_compile_features(test-definition PUBLIC cxx_std_17)
#target_link_libraries(test-definition queryosity::extensions pthread ${Boost_LIBRARIES})
Expand Down

0 comments on commit 0edf7e1

Please sign in to comment.