Skip to content

Instantly share code, notes, and snippets.

@commandblockguy
Created November 7, 2019 23:01
Show Gist options
  • Save commandblockguy/194655efee4777fa782c4980be19f7fd to your computer and use it in GitHub Desktop.
Save commandblockguy/194655efee4777fa782c4980be19f7fd to your computer and use it in GitHub Desktop.
CMakeLists.txt file for use with the CE C toolchain and CLion
cmake_minimum_required(VERSION 3.15)
# Change the project name below
project(projectname C)
set(CMAKE_C_STANDARD 90)
include_directories(src)
include_directories(src/gfx)
include_directories($ENV{CEDEV}/include)
add_custom_target(Make ALL $(MAKE) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} SOURCES
# a list of sources without commas here:
src/main.c
)
# A dummy target to make CLion do stuff
# You also need to add all files here
add_executable(dummy
src/main.c
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment