diff options
author | Chris Dyer <cdyer@vivace.clab.cs.cmu.edu> | 2015-03-04 22:46:33 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@vivace.clab.cs.cmu.edu> | 2015-03-04 22:46:33 -0500 |
commit | 42e6a2888f986b062c6391b6bef6ef817c6b8a68 (patch) | |
tree | fa5c9828928adf5a025575082e911c42a7019105 /extractor | |
parent | 3d2a60701f053fc35130711e88d9fcb29f29e274 (diff) |
deal with libdl
Diffstat (limited to 'extractor')
-rw-r--r-- | extractor/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/extractor/CMakeLists.txt b/extractor/CMakeLists.txt index 1cf8533b..93a524cc 100644 --- a/extractor/CMakeLists.txt +++ b/extractor/CMakeLists.txt @@ -8,9 +8,10 @@ if (OPENMP_FOUND) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") endif() -find_package(GTest REQUIRED) -find_package(GMock REQUIRED) -if(GMOCK_FOUND) +find_package(GTest) +find_package(GMock) +if(GTEST_FOUND) + if(GMOCK_FOUND) #rule_factory_test.cc set(TEST_SRCS alignment_test.cc data_array_test.cc @@ -50,7 +51,8 @@ if(GMOCK_FOUND) add_test(NAME ${testName} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${testName} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endforeach(testSrc) -endif(GMOCK_FOUND) + endif(GMOCK_FOUND) +endif(GTEST_FOUND) set(sacompile_SRCS sacompile.cc) add_executable(sacompile ${sacompile_SRCS}) |