schlechter Anfang
This commit is contained in:
@@ -14,15 +14,34 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
|
||||
#set(CMAKE_BUILD_TYPE Release)
|
||||
|
||||
add_compile_options(-fsanitize=address)
|
||||
add_link_options(-fsanitize=address)
|
||||
|
||||
|
||||
add_compile_options(-ldl)
|
||||
add_link_options(-ldl)
|
||||
|
||||
add_compile_options(-lpthread)
|
||||
add_link_options(-lpthread)
|
||||
|
||||
|
||||
add_compile_options(-lm)
|
||||
add_link_options(-lm)
|
||||
|
||||
add_compile_options(-mavx2)
|
||||
add_link_options(-mavx2)
|
||||
|
||||
|
||||
add_compile_options(-msse2)
|
||||
add_link_options(-msse2)
|
||||
# Füge Includeverzeichnisse hinzu
|
||||
include_directories(include)
|
||||
# Legt die Variable SRC_FILES an, die alle
|
||||
# .cpp-Dateien des Projekts benennt,
|
||||
# die in Verzeichnis src/ liegen.
|
||||
file(GLOB SRC_FILES
|
||||
${PROJECT_SOURCE_DIR}/src/*.cpp)
|
||||
${PROJECT_SOURCE_DIR}/src/*)
|
||||
|
||||
# Use CMakes FetchContent
|
||||
# Workaround for CMake >= 3.24
|
||||
@@ -32,4 +51,4 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
|
||||
endif()
|
||||
|
||||
|
||||
add_executable(erstertest src/main.cpp ${SRC_FILES})
|
||||
add_executable(${PROJECT_NAME} src/main.cpp ${SRC_FILES})
|
||||
|
||||
Reference in New Issue
Block a user