annotate CMakeLists.txt @ 75:624fe2ec975c cmake-of-the-shelf

reduce user command to achive fs space
author kono
date Fri, 02 Aug 2019 19:34:33 +0900
parents 087d7b61c86b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
41
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
1 cmake_minimum_required(VERSION 3.3)
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
2
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
3 # output compile log
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
4 set(CMAKE_VERBOSE_MAKEFILE 1)
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
5
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
6 # set compiler
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
7 set(CMAKE_C_COMPILER $ENV{CBC_COMPILER})
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
8
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
9 # compile option
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
10 add_definitions("-Wall -g -O0")
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
11
087d7b61c86b cbc cmake version
kono
parents:
diff changeset
12 add_subdirectory(src)