This commit is contained in:
Přemysl Eric Janouch 2017-06-14 23:28:30 +02:00
parent 1dcd259d05
commit 7b0d7a19e5
Signed by: p
GPG Key ID: B715679E3A361BE6
2 changed files with 1 additions and 8 deletions

View File

@ -34,15 +34,8 @@ foreach (extra iconv rt)
endif (extra_lib_${extra}) endif (extra_lib_${extra})
endforeach (extra) endforeach (extra)
# Generate a configuration file
# TODO: actualy use the configuration file for something; so far we allow
# for direct inclusion without running this CMakeLists.txt
configure_file (${PROJECT_SOURCE_DIR}/liberty-config.h.in
${PROJECT_BINARY_DIR}/liberty-config.h)
include_directories (${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR})
set (common_sources ${PROJECT_BINARY_DIR}/liberty-config.h)
# Build some unit tests # Build some unit tests
include_directories (${PROJECT_SOURCE_DIR})
enable_testing () enable_testing ()
foreach (name liberty proto) foreach (name liberty proto)
add_executable (test-${name} tests/${name}.c ${common_sources}) add_executable (test-${name} tests/${name}.c ${common_sources})

View File