Files moved into src/ and lib/

This commit is contained in:
King_DuckZ 2014-09-25 18:50:19 +02:00
parent c085388163
commit 5a9bcf1ecb
9 changed files with 26 additions and 22 deletions

View file

@ -1,29 +1,9 @@
cmake_minimum_required(VERSION 2.6 FATAL_ERROR) cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(tigersum D C) project(tigersum)
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -O0 -Wall -Wextra") 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_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_DEBUG "${CMAKE_D_FLAGS_DEBUG} -funittest -g -O0 -Wall -Wdeprecated")
set(CMAKE_D_FLAGS_RELEASE "${CMAKE_D_FLAGS_RELEASE} -O3 -Wall -Wdeprecated") set(CMAKE_D_FLAGS_RELEASE "${CMAKE_D_FLAGS_RELEASE} -O3 -Wall -Wdeprecated")
set(DEFAULT_TIGER_VERSION "1") add_subdirectory(src)
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
)

24
src/CMakeLists.txt Normal file
View file

@ -0,0 +1,24 @@
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(tigersum D C)
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}
../lib/reference_tiger/sboxes.c
../lib/reference_tiger/tiger.c
main.d
tiger.d
sums.d
)

View file

View file