Guest User

Untitled

a guest
Feb 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8.9)
  2.  
  3. project(a.out)
  4. include_directories(include)
  5. file(GLOB SOURCES "src/*.c")
  6. add_executable(${PROJECT_NAME} main.c ${SOURCES})
  7. #----------------------------------------------------------------
  8. project(test.out)
  9. file(GLOB TEST_SOURCES "tests/*.c")
  10. add_executable(${PROJECT_NAME} ${TEST_SOURCES} ${SOURCES})
  11. target_link_libraries(${PROJECT_NAME} check subunit m rt pthread)
Add Comment
Please, Sign In to add comment