Advertisement
zoltanb

Untitled

May 11th, 2018
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.75 KB | None | 0 0
  1. cmake_minimum_required (VERSION 3.0)
  2.  
  3. SET(MODULE_NAME "auth")
  4.  
  5. PROJECT(mod_${MODULE_NAME})
  6.  
  7. # Linking
  8. ## Expects libraries to be built according to the target architecture and are on the linking path.
  9.  
  10. INCLUDE_DIRECTORIES("/root/deps/usr/include" "/root/deps/usr/local/include")
  11. LINK_DIRECTORIES("/root/deps/usr/lib" "/root/deps/usr/local/lib")
  12.  
  13. SET(LIBRARIES_LIST
  14.             "zmq"
  15.             "czmq"
  16.      )
  17.  
  18. # Create binary
  19. ## Finding application .cc sources
  20. FILE(GLOB_RECURSE SRC_FILES src/*.cc)
  21. INCLUDE_DIRECTORIES("src")
  22.  
  23. ADD_EXECUTABLE(mod_${MODULE_NAME} ${SRC_FILES})
  24. SET_TARGET_PROPERTIES(
  25.     mod_${MODULE_NAME}
  26.     PROPERTIES
  27.     RUNTIME_OUTPUT_DIRECTORY bin/
  28.     OUTPUT_NAME mod_${MODULE_NAME}.run
  29.     )
  30.  
  31. TARGET_LINK_LIBRARIES(mod_${MODULE_NAME} ${LIBRARIES_LIST})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement