Created
November 7, 2019 23:01
-
-
Save commandblockguy/194655efee4777fa782c4980be19f7fd to your computer and use it in GitHub Desktop.
CMakeLists.txt file for use with the CE C toolchain and CLion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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