Skip to content

Commit

Permalink
Trim some stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-jeon committed Apr 20, 2024
1 parent 0c7af6f commit d9a32e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
20 changes: 1 addition & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ project(
rtz_benchmark
VERSION 0.1.0
DESCRIPTION "Benchmark several different trailing zero removal algorithms"
HOMEPAGE_URL "https://example.com/"
LANGUAGES CXX
)

Expand All @@ -15,21 +14,6 @@ docs_early_return()
include(cmake/project-is-top-level.cmake)
include(cmake/variables.cmake)

# ---- Declare library ----

add_library(
rtz_benchmark_lib OBJECT
source/lib.cpp
)

target_include_directories(
rtz_benchmark_lib ${warning_guard}
PUBLIC
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/source>"
)

target_compile_features(rtz_benchmark_lib PUBLIC cxx_std_17)

# ---- Declare executable ----

add_executable(rtz_benchmark_exe source/main.cpp)
Expand All @@ -41,9 +25,7 @@ set_target_properties(
EXPORT_NAME exe
)

target_compile_features(rtz_benchmark_exe PRIVATE cxx_std_17)

target_link_libraries(rtz_benchmark_exe PRIVATE rtz_benchmark_lib)
target_compile_features(rtz_benchmark_exe PRIVATE cxx_std_20)

# ---- Install rules ----

Expand Down
10 changes: 2 additions & 8 deletions source/main.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#include <iostream>
#include <string>

#include "lib.hpp"

auto main() -> int
int main()
{
library lib;
std::string message = "Hello from " + lib.name + "!";
std::cout << message << '\n';
return 0;

}

0 comments on commit d9a32e7

Please sign in to comment.