CMakeLists.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ## ======================================================================== ##
  2. ## Copyright 2009-2017 Intel Corporation ##
  3. ## ##
  4. ## Licensed under the Apache License, Version 2.0 (the "License"); ##
  5. ## you may not use this file except in compliance with the License. ##
  6. ## You may obtain a copy of the License at ##
  7. ## ##
  8. ## http://www.apache.org/licenses/LICENSE-2.0 ##
  9. ## ##
  10. ## Unless required by applicable law or agreed to in writing, software ##
  11. ## distributed under the License is distributed on an "AS IS" BASIS, ##
  12. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ##
  13. ## See the License for the specific language governing permissions and ##
  14. ## limitations under the License. ##
  15. ## ======================================================================== ##
  16. SET(CMAKE_THREAD_PREFER_PTHREAD TRUE)
  17. FIND_PACKAGE(Threads REQUIRED)
  18. ADD_LIBRARY(sys STATIC
  19. sysinfo.cpp
  20. alloc.cpp
  21. filename.cpp
  22. library.cpp
  23. thread.cpp
  24. network.cpp
  25. string.cpp
  26. regression.cpp
  27. mutex.cpp
  28. condition.cpp
  29. barrier.cpp
  30. )
  31. TARGET_LINK_LIBRARIES(sys ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
  32. SET_PROPERTY(TARGET sys PROPERTY FOLDER common)