aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/test/c/CMakeLists.txt')
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/ethash/test/c/CMakeLists.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/CMakeLists.txt b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/CMakeLists.txt
index dd91d8a92..f94531c3d 100644
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/CMakeLists.txt
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/CMakeLists.txt
@@ -27,13 +27,16 @@ IF( NOT Boost_FOUND )
find_package(Boost 1.48.0 COMPONENTS unit_test_framework system filesystem)
ENDIF()
-IF( Boost_FOUND )
+IF (Boost_FOUND)
+ message(STATUS "boost header: ${Boost_INCLUDE_DIRS}")
+ message(STATUS "boost libs : ${Boost_LIBRARIES}")
+
include_directories( ${Boost_INCLUDE_DIR} )
include_directories(../../src)
- link_directories ( ${Boost_LIBRARY_DIRS} )
+ link_directories(${Boost_LIBRARY_DIRS})
file(GLOB HEADERS "*.h")
- if (NOT MSVC)
+ if ((NOT MSVC) AND (NOT APPLE))
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK)
endif()
if (NOT CRYPTOPP_FOUND)
@@ -48,11 +51,11 @@ IF( Boost_FOUND )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ")
endif()
- add_executable (Test test.cpp ${HEADERS})
+ add_executable (Test "./test.cpp" ${HEADERS})
target_link_libraries(Test ${ETHHASH_LIBS})
target_link_libraries(Test ${Boost_FILESYSTEM_LIBRARIES})
target_link_libraries(Test ${Boost_SYSTEM_LIBRARIES})
- target_link_libraries (Test ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
+ target_link_libraries(Test ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
if (CRYPTOPP_FOUND)
TARGET_LINK_LIBRARIES(Test ${CRYPTOPP_LIBRARIES})