Skip to content
Snippets Groups Projects
Commit cfb2c9ea authored by Valerio Pastore's avatar Valerio Pastore
Browse files

fix cmakelists

parent fb845423
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++1y")
# deps
add_subdirectory(deps/Base-DAQ)
add_subdirectory(deps/Base-DAQ EXCLUDE_FROM_ALL)
set(SOURCES
src/Astri_Packet.cpp
......@@ -18,15 +18,8 @@ add_library(AstriPacket ${SOURCES})
set(INC_DIR
"${PROJECT_SOURCE_DIR}/include"
"${PROJECT_SOURCE_DIR}/deps/Base-DAQ/include"
"${CMAKE_INSTALL_PREFIX}/include"
)
target_include_directories (AstriPacket PUBLIC ${INC_DIR})
# make install
file(GLOB INCLUDE_FILES "include/*.h")
install(
FILES ${INCLUDE_FILES}
DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Packets/Astri_Packet"
COMPONENT Headers
)
install(TARGETS AstriPacket DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment