Skip to content
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

Revert "More Idiomatic Use of CMake" #165

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions alfred/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ endif()

# find_path (LIBNL_INCLUDE_DIR netlink/netlink.h libnl3)

SET(CMAKE_THREAD_PREFER_PTHREAD TRUE)
SET(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads REQUIRED)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -lbluetooth")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -x c")
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -x c -I /usr/include/libnl3/")
SET(CMAKE_BUILD_TYPE Debug)
Expand Down Expand Up @@ -89,7 +87,6 @@ set_source_files_properties(${FIRMWARE_PATH}/sunray.ino PROPERTIES COMPILE_FLAGS
## add_definitions("-x c++")
## endif()

target_link_libraries(sunray Threads::Threads;bluetooth)
add_executable(sunray ${pi_sources} ${sunray_cpp} ${sunray_c} ${FIRMWARE_PATH}/sunray.ino)
target_include_directories(sunray PRIVATE src ${FIRMWARE_PATH}/src)
# target_link_libraries(sunray "${CMAKE_SOURCE_DIR}/lib/libarduino_${CMAKE_SYSTEM_PROCESSOR}.a")
Expand Down
1 change: 0 additions & 1 deletion alfred/build/.gitignore

This file was deleted.

Empty file added alfred/build/.placeholder
Empty file.