Fix cmake for Linux

This commit is contained in:

View File

@@ -23,7 +23,10 @@ else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -fPIC")
endif()
include_directories(experiments ${PIP_INCLUDES} can)
include_directories(experiments ${PIP_INCLUDES})
if(WIN32)
include_directories(can)
add_subdirectory(can)
@@ -38,11 +41,10 @@ add_dependencies(can_send_multithread copy_dependencies)
add_executable(can_send experiments/can_send.cpp)
target_link_libraries(can_send can)
add_dependencies(can_send copy_dependencies)
endif()
add_executable(mutex experiments/mutex.cpp)
target_link_libraries(mutex ${PIP_LIBRARY} ${PIP_CONCURRENT_LIBRARY})
add_dependencies(mutex copy_dependencies)
add_executable(mutex_multithread experiments/mutex_multithread.cpp)
target_link_libraries(mutex_multithread ${PIP_LIBRARY} ${PIP_CONCURRENT_LIBRARY})
add_dependencies(mutex_multithread copy_dependencies)