-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from arves100/master
Windows+Cmake
- Loading branch information
Showing
14 changed files
with
1,963 additions
and
5,376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cmake_minimum_required(VERSION 3.0 FATAL_ERROR) | ||
project(tl-parser LANGUAGES C) | ||
|
||
set(SOURCES crc32.h crc32.c tlc.c tl-parser.c tl-parser.h tl-parser-tree.h tl-tl.h portable_endian.h) | ||
|
||
if (WIN32) | ||
add_definitions("-D_CRT_SECURE_NO_WARNINGS") | ||
list(APPEND SOURCES wgetopt.c wgetopt.h) | ||
if (MSVC) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8") | ||
endif() | ||
endif() | ||
|
||
add_executable(${PROJECT_NAME} ${SOURCES}) | ||
if (NOT WIN32) | ||
target_link_libraries(${PROJECT_NAME} m) | ||
endif() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.