SMBusData crash test
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
cmake_policy(SET CMP0020 NEW)
|
||||
|
||||
project(multithread_experiments)
|
||||
cmake_minimum_required(VERSION 2.8.6)
|
||||
|
||||
option(USE_SMSDK "Use libraries from SMSDK directory" 1)
|
||||
if(USE_SMSDK)
|
||||
set(PATH_TO_SMSDK $ENV{SMSDK_DIR})
|
||||
set(SM_BIN_DIR $ENV{SM_BIN_DIR})
|
||||
set(PIP_DIR ${PATH_TO_SMSDK})
|
||||
set(SMBRICKS_INCLUDES ${PATH_TO_SMSDK}/include/SMBricks)
|
||||
set(SMBRICKS_LIB_DIR ${PATH_TO_SMSDK}/lib)
|
||||
endif()
|
||||
|
||||
find_package(PIP REQUIRED)
|
||||
find_package(QAD REQUIRED)
|
||||
find_package(SM REQUIRED)
|
||||
|
||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3 -fPIC -std=c++11")
|
||||
@@ -21,7 +13,7 @@ else()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -fPIC")
|
||||
endif()
|
||||
|
||||
include_directories(experiments ${PIP_INCLUDES} ${PROJECT_SOURCE_DIR})
|
||||
include_directories(experiments ${SMBRICKS_INCLUDES} ${PIP_INCLUDES} ${PROJECT_SOURCE_DIR})
|
||||
|
||||
if(WIN32)
|
||||
include_directories(can)
|
||||
@@ -51,4 +43,7 @@ add_executable(vectors experiments/vectors.cpp)
|
||||
target_link_libraries(vectors ${PIP_LIBRARY})
|
||||
|
||||
add_executable(block_choice experiments/block_choice.cpp)
|
||||
target_link_libraries(block_choice ${PIP_LIBRARY})
|
||||
target_link_libraries(block_choice ${PIP_LIBRARY})
|
||||
|
||||
add_executable(smbusdata_crash_test experiments/smbusdata_crash_test.cpp)
|
||||
target_link_libraries(smbusdata_crash_test SMBricks_shared ${PIP_LIBRARY} ${PIP_CONCURRENT_LIBRARY} ${PIP_CRYPT_LIBRARY})
|
||||
Reference in New Issue
Block a user