pulling up call to find_packages

eliminates multiple calls to find_packages
This commit is contained in:
Michael Tryby
2019-03-22 11:08:54 -04:00
parent c9903620cb
commit ec72db5d82
4 changed files with 17 additions and 47 deletions

View File

@@ -7,8 +7,6 @@
# US EPA ORD/NRMRL
#
#Setup CMake to run tests
enable_testing()
# Sets for output directory for executables and libraries.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
@@ -17,18 +15,6 @@ if(UNIX)
set(CMAKE_CXX_FLAGS "-std=c++11")
endif(UNIX)
#Prep ourselves for compiling boost
IF(WIN32)
set(Boost_USE_STATIC_LIBS ON)
ELSE(TRUE)
set(Boost_USE_STATIC_LIBS OFF)
add_definitions(-DBOOST_ALL_DYN_LINK)
ENDIF(WIN32)
set(Boost_THREAD_FOUND OFF)
find_package(Boost COMPONENTS unit_test_framework system thread filesystem)
include_directories (${Boost_INCLUDE_DIRS})
set(toolkit_test_srcs
test_toolkit.cpp