mirror of
https://github.com/NishiOwO/JWasm.git
synced 2025-04-21 08:44:38 +00:00
commit
26f97c8b5c
25
CMakeLists.txt
Normal file
25
CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
|
||||
project(jwasm)
|
||||
|
||||
include_directories(H)
|
||||
if (WIN32)
|
||||
set(CompilerFlags
|
||||
CMAKE_CXX_FLAGS
|
||||
CMAKE_CXX_FLAGS_DEBUG
|
||||
CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_C_FLAGS
|
||||
CMAKE_C_FLAGS_DEBUG
|
||||
CMAKE_C_FLAGS_RELEASE
|
||||
)
|
||||
foreach(CompilerFlag ${CompilerFlags})
|
||||
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
|
||||
endforeach()
|
||||
add_definitions(-D__NT__ -DNDEBUG -DDEBUG_OUT -D_CRT_SECURE_NO_WARNINGS)
|
||||
else()
|
||||
add_definitions(-D__UNIX__ -DNDEBUG -DDEBUG_OUT)
|
||||
endif()
|
||||
|
||||
FILE(GLOB all_c_files *.c)
|
||||
LIST(REMOVE_ITEM all_c_files ${CMAKE_CURRENT_SOURCE_DIR}/trmem.c)
|
||||
add_executable(jwasm ${all_c_files})
|
Loading…
x
Reference in New Issue
Block a user