Skip to content

Instantly share code, notes, and snippets.

@jay3sh
Created May 14, 2017 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jay3sh/cbb871763e8a0b366f75c2f3d668f527 to your computer and use it in GitHub Desktop.
Save jay3sh/cbb871763e8a0b366f75c2f3d668f527 to your computer and use it in GitHub Desktop.
CMakeLists.txt for GSL project to make it browsable in Qt Creator
cmake_minimum_required(VERSION 3.0.0)
project(GSL)
set(CMAKE_C_COMPILER "/usr/bin/gcc")
set(CMAKE_VERBOSE_MAKEFILE ON)
file(GLOB_RECURSE SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/*.c)
file(GLOB_RECURSE INC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
add_library(${PROJECT_NAME} ${SRC_LIST} ${INC_LIST})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment