Skip to content

Commit 8ad3f42

Browse files
committed
ADD:
1. cmake build system
1 parent b78e6c3 commit 8ad3f42

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(qubitverse)
4+
5+
# Set compiler options
6+
set(CMAKE_CXX_STANDARD 23)
7+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG -march=native -mtune=native -masm=intel -funroll-all-loops -s")
8+
9+
# Add include directories
10+
include_directories(
11+
./qubitverse/simulator
12+
)
13+
14+
# Add source files
15+
set(SOURCES
16+
./qubitverse/simulator/simulator/simulator.cc
17+
)
18+
19+
# Create the executable target
20+
add_executable(${PROJECT_NAME} ${SOURCES})

0 commit comments

Comments
 (0)