Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION "3.10")
- # set the project name
- project("Chatlab")
- # add src files
- file(GLOB SOURCES ${PROJECT_SOURCE_DIR}/src/*.cpp)
- file(GLOB HEADERS ${PROJECT_SOURCE_DIR}/src/include/*.h)
- # add the executable
- add_executable(${PROJECT_NAME} ${SOURCES})
- target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_SOURCE_DIR}/src/include)
- # Glfw
- add_subdirectory("libs/glfw")
- target_link_libraries(${PROJECT_NAME} "glfw")
- # Glew
- add_definitions(-DGLEW_STATIC)
- add_subdirectory("libs/glew")
- # YAML parser
- add_subdirectory("libs/yaml")
- target_link_libraries(${PROJECT_NAME} "yaml-cpp::yaml-cpp" "libglew_static")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement