fix cmake build issue. fix build type checker. rm IronPad windows header including under linux
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
project(IronPad LANGUAGES CXX)
|
||||
|
||||
# set standard
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
|
||||
# add libcmo
|
||||
add_subdirectory("../LibCmo" "LibCmo.out")
|
||||
# add libcmo if not existed
|
||||
if (NOT TARGET LibCmo)
|
||||
add_subdirectory("../LibCmo" "LibCmo.out")
|
||||
endif ()
|
||||
|
||||
# setup sources
|
||||
set(ironpad_headers ".")
|
||||
@ -24,3 +23,11 @@ target_include_directories(IronPad
|
||||
PUBLIC
|
||||
${ironpad_headers}
|
||||
)
|
||||
|
||||
# set project standard
|
||||
set_target_properties(IronPad
|
||||
PROPERTIES
|
||||
CXX_STANDARD 20
|
||||
CXX_STANDARD_REQUIRED 20
|
||||
CXX_EXTENSION OFF
|
||||
)
|
||||
|
@ -1,9 +1,14 @@
|
||||
#include "IronPad.hpp"
|
||||
|
||||
// only include these header on windows.
|
||||
// in other words, include these header when ironpad enabled.
|
||||
#if defined(IRONPAD_ENABLED)
|
||||
#include <Windows.h>
|
||||
#include <DbgHelp.h>
|
||||
#include <filesystem>
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
#endif
|
||||
|
||||
namespace IronPad {
|
||||
|
||||
|
Reference in New Issue
Block a user