mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Add cmake file for cross compiling using MingW.
This commit is contained in:
@@ -9,5 +9,5 @@ add_subdirectory(src)
|
||||
add_subdirectory(src/dos)
|
||||
add_subdirectory(src/unix)
|
||||
add_subdirectory(src/linux)
|
||||
|
||||
add_subdirectory(src/win32)
|
||||
|
||||
|
||||
16
setter/src/win32/CMakeLists.txt
Normal file
16
setter/src/win32/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
return()
|
||||
endif()
|
||||
|
||||
project(
|
||||
fssetter-win32
|
||||
DESCRIPTION "Filesystem test creator for 32-bit and 64-bit Windows"
|
||||
LANGUAGES C)
|
||||
|
||||
set(PLATFORM_SOURCES win32.c)
|
||||
|
||||
set(EXECUTABLE_NAME "fssetter-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
|
||||
|
||||
add_executable(${EXECUTABLE_NAME} ${PLATFORM_SOURCES})
|
||||
|
||||
target_link_libraries(${EXECUTABLE_NAME} core)
|
||||
Reference in New Issue
Block a user