Skip to content
Snippets Groups Projects
Commit a18a0661 authored by Jan Mayer's avatar Jan Mayer
Browse files

Better build on windows

parent 62c3bea1
Branches anniversary
No related tags found
No related merge requests found
......@@ -24,3 +24,6 @@ build/
*.i*86
*.x86_64
*.hex
# IDE Folders
*.idea/
\ No newline at end of file
......@@ -42,6 +42,7 @@ endif( ${HAVE_SNPRINTF} )
# Check for shared memory via sys/shm.h
include( CheckIncludeFile )
set( HAVE_SHM false )
check_include_file( "sys/shm.h" HAVE_SHM )
if( NOT ${HAVE_SHM} )
add_definitions( -DNO_SHM )
......
if exist build\ rmdir /s /q build
mkdir build
cd build
cmake .. -G "Unix Makefiles"
make
make test ARGS="-V"
cd ..
\ No newline at end of file
......@@ -5,5 +5,12 @@ add_executable(check_mfile check_mfile.c)
target_link_libraries(check_mfile mfile)
add_dependencies(check_mfile mfile)
if(WIN32)
add_custom_command(TARGET check_mfile POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
"${CMAKE_CURRENT_BINARY_DIR}/../libmfile.dll"
"${CMAKE_CURRENT_BINARY_DIR}/libmfile.dll")
endif(WIN32)
add_test(run_check_mfile check_mfile)
add_test(run_check_spectra md5sum -c ${CMAKE_SOURCE_DIR}/test/md5sums)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment