Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
wjr-z committed Dec 14, 2023
1 parent f4f5448 commit d456b5d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 68 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

CMakeFiles
CMakeCache.txt
cmaek_install.cmake
cmake_install.cmake
Makefile
build
.vscode
.vscode
*.sln
*.vcxproj
*.vcxproj.filters
54 changes: 0 additions & 54 deletions cmake_install.cmake

This file was deleted.

13 changes: 8 additions & 5 deletions CMakeLists.txt → examples/demo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
cmake_minimum_required(VERSION 3.10)

project(wjr LANGUAGES CXX)

if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

if (MSVC)
set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} /O2 /std:c++17 /arch:mavx2")
else()
set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O2 -std=c++17 -mavx2 -lpthread -DWJR_DEBUG_LEVEL=3")
set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O2 -std=c++17 -mavx2 -lpthread")
endif()

set(WJR_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
Expand All @@ -15,14 +18,14 @@ file(GLOB_RECURSE WJR_SRCS ${WJR_LIB_DIR}/*.cpp)

add_executable(
wjr
main.cpp
${WJR_SRCS}
src/main.cpp
${WJR_SRCS}
)

target_include_directories(wjr PUBLIC
${WJR_INCLUDE_DIR}
)

target_link_libraries(
wjr
wjr
)
1 change: 1 addition & 0 deletions examples/demo/src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
int main() { return 0; }
7 changes: 0 additions & 7 deletions main.cpp

This file was deleted.

Binary file removed wjr
Binary file not shown.

0 comments on commit d456b5d

Please sign in to comment.