CMakeLists.txt 648 B

1234567891011121314151617181920212223242526
  1. # Define target name
  2. set (TARGET_NAME Input)
  3. # Define source files
  4. file (GLOB CPP_FILES *.cpp)
  5. file (GLOB H_FILES *.h)
  6. set (SOURCE_FILES ${CPP_FILES} ${H_FILES})
  7. # Include directories
  8. include_directories (
  9. ../Container ../Core ../Graphics ../IO ../Math ../Resource ../Scene
  10. )
  11. if (USE_OPENGL)
  12. include_directories (../../ThirdParty/GLee)
  13. endif ()
  14. # Define target & libraries to link
  15. add_library (${TARGET_NAME} STATIC ${SOURCE_FILES})
  16. target_link_libraries (${TARGET_NAME} Container Core Graphics IO Math Resource Scene)
  17. if (USE_OPENGL)
  18. target_link_libraries (${TARGET_NAME} GLFW)
  19. endif ()
  20. finalize_lib ()