King_DuckZ
c085388163
The code is very brittle, no error checking is performed at all so if anything goes wrong the program will misbehave. Output is still incomplete.
29 lines
731 B
CMake
29 lines
731 B
CMake
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
|
|
project(tigersum D C)
|
|
|
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -O0 -Wall -Wextra")
|
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -Wall -Wdeprecated")
|
|
set(CMAKE_D_FLAGS_DEBUG "${CMAKE_D_FLAGS_DEBUG} -funittest -g -O0 -Wall -Wdeprecated")
|
|
set(CMAKE_D_FLAGS_RELEASE "${CMAKE_D_FLAGS_RELEASE} -O3 -Wall -Wdeprecated")
|
|
|
|
set(DEFAULT_TIGER_VERSION "1")
|
|
set(TIGERSUM_MAJOR "0")
|
|
set(TIGERSUM_MINOR "1")
|
|
|
|
configure_file(
|
|
"${PROJECT_SOURCE_DIR}/${PROJECT_NAME}Config.d.in"
|
|
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.d"
|
|
)
|
|
|
|
include_directories(
|
|
.
|
|
)
|
|
add_definitions("-J${PROJECT_BINARY_DIR}")
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
sboxes.c
|
|
tiger.c
|
|
main.d
|
|
tiger.d
|
|
sums.d
|
|
)
|